[GEOS-6413] The new KML encoder can leak unclosed feature iterators