driver: Fix issue with module loops and multiple home units
We were attempting to rehydrate all dependencies of a particular module, but we actually only needed to rehydrate those of the current package (as those are the ones participating in the loop).
This fixes loading GHC into a multi-unit session.
Fixes #21814 (closed)