Add argument to thread_create
core: remove extra thread_create_arg() function
Merge pull request #856 from Kijewski/issue-847

 core: add an argument to `thread_create()` (implementation)