get socket error from socket option if the connecting failed with SocketError is success in some mono versions