ghc-8.6.4: The GHC API

Produce code to save the current thread state to CurrentTSO
Produce code to load the current thread state from CurrentTSO