Added control mutex to SyncSocket to synchronzie destructor and constructors