[GMR] Fix a long-standing bug in GlobalsModRef where it failed to clear