Implemented SyncSocket locking functions