Fixed race condition with a Concurrent Dictionary