[libvirt] [PATCH] object: Add sanity check on correct parent class