Improve error reporting for UDP SendTo().
Properly implement blocking semantics with MSG_DONTWAIT.

This fixes a regression that causes a deadlock when the connection is lost
and then restored.