thread_block_locked
return thread_block_locked(thread_get_current_thread());
status_t error = thread_block_locked(thread);