Restore file position after memory-mapped reads/writes.