Fix recompilation checking for multiple home units
See individual commits for details.
There is a corresponding 9.4 branch with the already backported commits here: https://gitlab.haskell.org/ghc/ghc/-/commits/wip/recomp-fixes-9.4
See individual commits for details.
There is a corresponding 9.4 branch with the already backported commits here: https://gitlab.haskell.org/ghc/ghc/-/commits/wip/recomp-fixes-9.4