SocketChannel: set the local address after #connect..

.. even for channels that are non-blocking. Posix suggests that
the socket is always bound before connect returns, even if it's
non-blocking and the remote connection hasn't been established
yet.

This unbreaks tests that expect SocketChannel#isBound to return
true after connect.

(cherry picked from commit 54efdfbc7caec82e2f8030935d58522759e04000)

Change-Id: Iae6bd69687048a4cf0ddbb753184d1f3c81ec0c8
1 file changed