Fix makeflow's segfault, reported by Lauren Assour

A function expected struct dag_lookup_set, but it was getting a
struct dag.