fix write batcher flusher thread initialization