Fixed unordered_map error. Added shared lock and utilized it in reads. This will improve perf when there are lots of cache misses.