VS: Fix C++ modules in source files with the same name
When multiple source files in a single target have the same name, we
already set ObjectFileName explicitly to avoid a .obj collision. For
C++ module sources, set Module{Output,Dependencies}File to avoid
.ifc and .module.json collisions.
Fixes: #25038 (closed)
Backport: release