BUG io: fix file descriptor closing for netcdf variables

File descriptors created for each Variable stayed open when
using mmap

Closes gh-1555
TST: add regression test for gh-1550 (netcdf_file leaves mmaps open).
Merge branch 'pr/2792' into master.

Reviewed as https://github.com/scipy/scipy/pull/2792