netcdf: don't use the cache to set variables in the parent scope

Change-Id: I32f7061afa3d5fea293a85ab6eb1dea3a8df755d
Merge topic 'netcdf-cache-variables' into master

473036d0 netcdf: don't use the cache to set variables in the parent scope