[libvirt] [PATCH] Should determine the value of client first before locking it