core: rename thread_pid to sched_active_pid