[GEOS-5757] Build fails on Windows due to unreleased input streams in security subsystem