ISPN-3665 SingleFileStore is not thread-safe for passivation
Port relevant FsyncMode logic from old FileCacheStore.
PERIODIC mode was omitted, since doesn't really make sense to use with a single file.