Fix socket handling on OS X
Fix socket handling on OS X

If a Unix socket fails in Unix.connect, then the socket must be
closed and re-opened, otherwise the second attempt to connect will
receive EINVAL on OS X (not Linux)

Signed-off-by: David Scott <63c9eb0ea83039690fefa11afe17873ba8278a56@citrix.com>

djs55/message-switch,djs55/message-switch-1,xapi-project/message-switch,djs55/message-switch,xapi-project/message-switch,djs55/message-switch-1,djs55/message-switch-1,xapi-project/message-switch,djs55/message-switch