[PATCH 1/4] tpm2-sessions: address out-of-range indexing