ghci: Fix most calls to isLoaded to work in multi-mode
The most egregious thing this fixes is the report about the total number of loaded modules after starting a session.
Ticket #20889
The most egregious thing this fixes is the report about the total number of loaded modules after starting a session.
Ticket #20889