[Git][ghc/ghc][master] Generalise thNameToGhcName by adding HasHscEnv