Adjust the the switch_thread_init api to be more perfect.
Use new switch_thread_init api