Remove locals() usage from nova.virt.libvirt.utils.

Change-Id: Id5ca94f333de3fb4d8611d08afa75318ce65e3b5
Merge "Remove locals() usage from nova.virt.libvirt.utils."