Wait on thread not event