Seems like an easier fix is to simply recompile with
the -DSQLITE_DISABLE_DIRSYNC compile-time option.