Add sleep function to kernel.