[Git][ghc/ghc][wip/marge_bot_batch_merge_job] 4 commits: Generalise thNameToGhcName by adding HasHscEnv