[corlib] Fix WaitHandle.Wait{One,Any,All} when runtime returns WAIT_FAILED