[libvirt] [PATCH v2 07/14] rpc: Refactor the condition whether a client needs authentication