Fix a use-after-free error in GlobalOpt CleanupConstantGlobalUsers