[Core] Fix project reference metadata loading bug

Properly read metadata for project references that reference other
projects. This fixes bug #22044.

In the msbuild host, only reload the project that is going to be built,
not all referenced projects.