fix netcdf driver to try and identify .grd (and .nc3) files in netcdf-4 format (#5291), so they are identified before the hdf5 driver

git-svn-id: https://svn.osgeo.org/gdal/trunk/gdal@26605 f0d54148-0727-0410-94bb-9a71ac55c965