Small cleanup.
Changed my mind.
For DOS if must call stat after closing the file or the mtime is not
updated.