[PATCH 4.17 082/220] tpm: fix race condition in tpm_common_write()