Use thread safe map
Merge pull request #3756 from wmtan/ConcurrentUnorderedMap

Use concurrent unordered map for thread safety