[libvirt] [PATCH v4 10/23] tpm: Refactor virTPMEmulatorInit to use loop