Use a contextmanager for roundtripping in test_backends

With the current implementation, it looks like might end up deleting
the path to files opened with netCDF4 before we are done looking
at the values, because roundtrip (for netCDF4) returned after exiting
the create_tmp_file context manager. I'm actually not entirely sure
how we managed to get away with that...