Fix a logic error in pbs_original_connect(). If no error was read from the socket after EINPROGRESS was received on the connect, we would proceed as though connect had succeeded, which it hasn't. We should retry in this instance. Also, use the function we have to read the error from the socket and don't duplicate the code.
Resolve the changes when porting the fix for multi-homed hosts in authentication as well as reverting the protocol change.