[libvirt] [PATCH v7 07/19] tpm: Refactor virTPMEmulatorInit to use loop