ensuring persistence windows do not change buffer flags' state when flushing