rapidio: fix blocking wait for discovery ready