Ninja: make the collator rule use `restat = 1`
If the modmap changes, we need to recompile. It is not just a file that needs to exist to compile.
Based on !9248 (merged).
See: #25511 (closed)
Manual-backport: release-3.28
Backport: release
Edited by Ben Boeckel