ntdll: Avoid infinite wait during process termination.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=59178
Genshin Impact calls TpReleaseCleanupGroupMembers from a DllMain receiving DLL_PROCESS_DETACH. At that point all the worker threads are dead, so if one got killed while running a callback, cleanup will wait forever.