qemu: Do not try to set memlock on inactive domain
qemu: Do not try to set memlock on inactive domain

When we call qemuDomainSetMaxMemLock to reset memory locking limit back
to its original value the domain can already be stopped (for example
after the domain shuts down during migration) in which case it does not
make sense to set any limit. Doing so can even be harmful as we may end
up setting the limit for the daemon itself as the PID is 0.

Signed-off-by: Jiri Denemark <62bdf77dc47919a4d59a91822129d14633cfca81@redhat.com>
Reviewed-by: Pavel Hrdina <d4772d05997b8abf035041e3b4f4996380ea7e7a@redhat.com>

olafhering/libvirt,jfehlig/libvirt,olafhering/libvirt,libvirt/libvirt,zippy2/libvirt,libvirt/libvirt,libvirt/libvirt,jfehlig/libvirt,olafhering/libvirt,jfehlig/libvirt,zippy2/libvirt,jfehlig/libvirt,zippy2/libvirt,zippy2/libvirt,olafhering/libvirt,libvirt/libvirt