cm_requestClient could use a *counter* instead of storing each id

Incrementing the counter (and getting the new value) needs to be an atomic operation.