[GHC] #15754: Move free variable computation to after STG passes