[PATCH v3 06/11] ntoskrnl.exe: Make sure thread handle has rights to retrieve the TID.