Don't optimize out the critical region count