make kernel_shutdown_prepare() static