reboot: move shutdown/reboot related functions to kernel/reboot.c