SERVER-10026 limit number of self-intersections