tpm: Introduce function to poll for result of self test