Fix failing RestConfig StyleTest due to file locking issues on Windows

4 RestConfig StyleTests fail due to file locking issues because an extra/duplicate input stream is opened and not closed.  This fixes ISSUE GEOS-6663.