add CachedThreadStatesGaugeSet

Fixes #508