Separated code of thread_create in to ULT.h from test.c