Fix a use-after-free error in GlobalOpt CleanupConstantGlobalUsers

This is a backport of r197178 from LLVM trunk.