Use GEOSisClosed instead of GEOSisRing when cloning LinearRing from LineString.