Introduction of thread_create API change

Instead of setting a single callback to be called every time
nub_thread_push() is called, allow passing a callback to be run.