[PATCH v5 1/8] tcp: extract buffer management from tcp_send_flag()