lib: make _tolower() public
sched: don't call task_group() many times in set_task_rq()