introduce init_child_mappings

Make a copy of the global mappings on starting a new child.
Any manipulations that happens on those mappings will happen to
the copied map structs.

This has the nice side-effect of simplifying get_map() as it now
only has to ever iterate the one list.