hwthread: Restore current_threadid in hwthread_update_threads