driver: Fix -Wmissing-home-modules when multiple units have the same module name
It was assumed that module names were unique but that isn't true with multiple units.
The fix is quite simple, maintain a set of (ModuleName, UnitId)
and
query that to see whether the module has been specified.
Fixes #25122