qcow2: Allow get_refcount to return errors