Fixed thread synchonization issues in RemoteNode and NetworkManager.
Fixed bug in client socket connection handling.
Fixed bug concurrent access issue in RemoteNode.EventListener callbacks.