qcow2: Fix corruption after error in update_refcount