t/io_uring: use the right check for when to wait