Replace Fancy SynchronizingCounters by Mutex-Based Approach

This replaces the `SynchronizingCounter` and `BlockingCounter` templates based on atomics by a simple implementation based on a mutex locked variable. The implementation is dead-simple but might harm scalability. Still, I want to see if it fixes this bloody race condition.