Synchronize the creation of the mappings map.

noticed-by: miha