Added Mutex and Lock to SocketCommunication