thread: hi-level threads and synchronization primitives

Internal error.

Oops! Looks like something went wrong!