Corrected the handle generation algorithm in the kernel and csrss