SI-8131 fixes residual race condition in runtime reflection

review @retronym

This is the version of yesterday's pull request with `gitSynchronizedIfNotThreadsafe` optimization disabled. Let's get this in first and experiment with optimizations later.