Implement roughly the level of thread safety that
a shuffler needs to work from a InMemoryPipeline.
Counter API design.