[Bug 2893771]: file stat fails on locked files on win32.
make sure that [file stat] returns the right data, even for locked files.
[Bug 2893771]: file stat fails on locked files on win32.
[Bug 3608360]: Incompatible behaviour of "file exists".