tcp: temporary fix for UU sends

Spin until message is complete. May get stuck if the receiver is not
draining the socket.
Merge branch 'master' into topic/routing