Wait for writeable, rather than readable, socket on connect.

On our system, this change is necessary to be able to establish remote connections.  Local connections finish so quickly that the first poll() call returns 0, so whenBecomesReadable() is never called.