Add a mutex lock for operations on client list.