[Git][ghc/ghc][wip/jeltsch/more-efficient-home-unit-imports-finding] Widen the condition for taking the `sorted_deps` shortcut