Revert "Inlining: Remove outdated code path for GlobalRef movement (#46880)" (#46951)
This reverts commit cda61ef68f49cab66f45b731b7cffbb79a1d3c90. This seems to be exposing (or less likely actually causing) some problems with GC rooting, dead-code elimination, and/or valid IR: #46940 and #46943