cpuset: Adapt sched_affinity compat shims to the stable/13
Use compat shims to run the stable/13 world on a kernels which
does not support CPU_WHICH_TIDPID.
This is direct commit to the stable/13.
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D38677