client: Set the socket non-blocking only after connect succeeds