Fix race condition in runner (by fixing wait_on() in target).