Fix infinite recursion in the CompareExchange aot code.