ensuring persistence windows do not change buffer flags' state when flushing
Merge pull request #736 from lassewesth/flushing

flushing persistence windows no longer causes buffer under/ overflow