Linearly constrained evolutions of critical points and an application to cohesive fractures