Queue sync write statements until writeQueue is called.