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