sched: fix signedness warnings in sched.c