v3d: handle wait requirement when retrieving query results correctly