Pull up following revision(s) (requested by maxv in ticket #1909):
        sys/compat/freebsd/freebsd_sched.c	1.20-1.21

Avoid NULL dereference and fix sched param conversion (at least make it
do something). Pointed out by Maxime Villard.
Ticket 1909.