Fixed a race condition in loop_invariance_extern_calls test