add a lock to protect this map.