Added 'NcFile' member function 'sync' to expose nc_sync from netcdf-c

It should be possible to calll nc_sync also when using this API