Make ThreadpoolEventCollector instance static to prevent access after deletions.
Check out this pull request on&nbsp; <a href="https://app.reviewnb.com/tensorflow/tensorflow/pull/66326"><img align="absmiddle"  alt="ReviewNB" height="28" class="BotMessageButtonImage" src="https://raw.githubusercontent.com/ReviewNB/support/master/images/button_reviewnb.png"/></a> 

 See visual diffs & provide feedback on Jupyter Notebooks. 

---

 <i>Powered by <a href='https://www.reviewnb.com/?utm_source=gh'>ReviewNB</a></i>
Make ThreadpoolEventCollector instance static to prevent access after deletions.

FUTURE_COPYBARA_INTEGRATE_REVIEW=https://github.com/openxla/xla/pull/12896 from openxla:cleanup 32ded36419a4a1b2177a6374846497a8bb458ac9
