mn10300: split ret_from_fork, simplify kernel_thread()