Pushes the knowledge of "closed" onto storage.
Flushes the file before unlocking.