sh: Merge the legacy PMB mapping and entry synchronization code.