fix PR5186: the JIT shouldn't try to codegen available_externally