Fix a bug where the coarse base shift is not applied due to checking the module base plus region size, instead of the persisted-region base, which when the text segment is not at the module base is not the same thing.
Tested on the pcache-use test, which raises an application crash on recent Linux distros without this fix.
Fixes #5101 (closed)