threads: bugfix - do not call thread_current() from model-checker