Fixing issue #114: Race condition can happen in parallel token requests ...

...when sending client metrics