[GHC] #13554: Allow the user to provide a C function that is called on each thread the RTS creates before running any Haskell code