Added "flush" function to filesystem (and module/userspace APIs).
De-map files when closed.