Conditions on holographic entangling surfaces in higher curvature gravity