gridfs: plumb through timeout
tests: getenv_s() returns 0 on win32.
tests: add assertion.