Use switch_thread_init