fix a bug in socket_sendv

We didn't handle EAGAIN/EWOULDBLOCK/... appropriately in socket_sendv.
Now we check for and handle it