tpm: fix the cleanup of struct tpm_chip