tpm: check for TPM_CHIP_FLAG_TPM2 before calling tpm2_shutdown()