[libvirt PATCH v3 05/10] util: add API for copying identity objects