Dynamic fsync control