Adding sync calls after unmount to flush pending changes to disk.