[Core] Fix project unloading issue

I added checks to avoid managing configurations for projects that don't
support building (such as shared projects), but those checks should not
apply to unloaded projects.

Fixes bug #20223 - Unloaded project does not Reload in active configuration
mode