Add a latch for determining when it is safe to use maps.