fix a problem that leads to spurious 'file has changed on disk' messages

Before this commit, autosave files would (incorrectly) contribute to
the file's last modification time in a way that meant that after an autosave,
the warning would start triggering when the file is saved normally