[libvirt PATCH 08/19] rpc: move lock after declaration