ntdll: Use syscall thunks for wait functions.