[PATCH v2 3/9] virsh: secret: Refactor cleanup in cmdSecretGetValue