handle spurious returns of `wait_timeout` in test Fixes https://github.com/rust-lang/rust/issues/147885 Closes https://github.com/rust-lang/rust/pull/147871 `wait_timeout` is allowed to spuriously return, hence the `timeout_nanoseconds` must not assume that the wakeup resulted from a `notify_all()`.