SLICE-2 Improvement to avoid corner case when two thread tries to put value to the map.