Add a Mutex around the client refcount.