Add raceConditionsAvoidance example