[threadpool] Do not swallow exception in RegisterWaitForSingleObject callback (#4408)