Call write_stream_flags() from start_write_batch().