[Git][ghc/ghc][wip/backports-9.14] level imports: Fix infinite loop with cyclic module imports