Change MyHashMap to a thread safe one.