net_tcp: avoid some implicit vector copies