[Git][ghc/ghc][wip/T27022] 2 commits: ghci/TH: refactor to use IORef QState