Second-Order Geometric Flows on Foliated Manifolds