[CONSRV] Use NtClearEvent() and NtClose() instead of the Win32 functions.