Make ExternalCommandHelper::getNonce() reentrant.
Store previously generated values of nonce, and remove them from the container when they are used.
BUG: 396312