Fixes critical section recording race that could result in non-stable interval histogram samples

 - Replaced epoch mechanism with new CriticalSectionPhaser mechanism.

 - Changed PauseDetector from is-a Thread to has-a-Thread to avoid thread start races on construction.

 - Clean up field scopes in various classes.