We should probably rename that class to ScopedCriticalSection to make it apparent what it's actually doing.