Replace mutex with atomic for rpcServer.numClients

No actual mutex locking is required to protect this integer. Atomic ops suffice.