iredges: fix incorrect usage of visited flags in build walkers

Also simplified the code.
iredges: reorganize and fix block edges
simplify irg_walk_anchors