[libvirt PATCH 14/17] qemu: Refactor qemuDomainAdjustMaxMemLock()