[PATCH v2 2/8] tcp: extract buffer management from tcp_send_flag()