fix thread_stack_init

and change to inlude `arch/hwtimer_arch.h`