[PATCH v2 2/3] qemu_tpm: lock the state explicitly when running swtpm