move kp_wait from kdebug.c to vm.c

kp_wait should not called freely, so move it to core vm.c

Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@gmail.com>