Add an option to define how often to flush when writing a SWMR CXI file