GEOT-4784: NetCDF reader not disposed on finalize

Backporting to 11.x: GEOT-4784: NetCDF reader not disposed on finalize