qcow2: Move sync out of write_refcount_block_entries