fix changed prototype parameter 1 of thread_stack_init from void* to void(*)(void)

this fixes another warning from -pedantic