Upgrade BFS from 457 to 458

Fix the soft affined count not being migrated when an activated task moves
CPUs, optimising the set_task_cpu call in the process.

Remove now defunct functions.

-ck
Merge remote-tracking branch 'github/3.17/bfs' into 3.17/master