sched.h: Use pid_t type for pid argument
(cherry picked from commit 65dd321054cbbbcca192375b08843e860fc3b3c5)