Solved exercise 2b. RaceControl implementation using CountDownLatches.
Appears to be working correctly.