Tests/CXXModules: add a test to ensure that `restat` works for collation Also update the `modules-json-file` test to account for the fact that `CXXModules.json` is not updated for timestamp-only rebuild triggers. See: #25511