[coop] Make mono_threads_is_coop_enabled a normal function