[libvirt] [PATCHv5 12/19] conf: Refactor virDomainResctrlAppend