Handle changed files when stat has no mtime.

This is primarily useful for testing as the in-memory VFS we test against
has no mtime field.