workqueue: move function definitions within CONFIG_SMP block