Make [path_induction] more robust

In newer trunks, it'll loop on section hypotheses.  See
https://coq.inria.fr/bugs/show_bug.cgi?id=3769.
Fixes due to rewrite being less clever in presence of holes.