[libvirt] [PATCHv4 12/18] conf: Refactor virDomainResctrlAppend