Fix "Closed stream" exception in getDatabaseInfo()

happening when using GEOIP_MEMORY_CACHE option