Enforce mock order for critical section testing.