Corrected proc_get_thread_handle return type.
Added stubs for threading functions.
Added test for threading in userspace.
Correct race condition between new thread and code seeking to get its handle.
Fixed missing space (style).
Threading test now works (but parameter is not yet supported.)