pan/midgard: Add mir_foreach_successor helper