[Git][ghc/ghc][master] Don't use global variables to address concurrency bugs! (fixes #27234)