core: fix variable name for sched_pidlist

Something was overlooked in #1000.