Handle errno.EISCONN on MacOS in non-blocking socket connection

On Mac OS it raises EISCONN, when connection to the local socket successfully
established - handle it now properly.