Add argument to thread_create
core: remove extra thread_create_arg() function