[Bug 57824] New: SetThreadPriority unexpectedly fails on terminated threads instead of no-op