Change slow and unportable os_sync into fast and portable os_fsync
di-provider: keep file open on FS_EOF