[PATCH 4.14 058/157] tpm: fix race condition in tpm_common_write()