Lock kernel.