[SeaBIOS] [PATCH v1 1/3] tpm: Refactor duplicated wait code in tis_wait_sts() & crb_wait_reg()