TRQ-2097. For non-blocking sockets, the errno of EINPROGRESS is always set and then socket_wait_for_write() has to determine what the actual errno is, but we didn't propagate the true errno backwards for the callers. This check-in propagates the correct errno.