When checking query wait completion, all queries were previously checked for Available status, and blocked until all became Available. However, only queries that were encoded to be written should be checked. It is okay for queries that are not encoded to be written to remain in Initial state, and not block the wait.