If __wt_getenv fails to allocate memory, we need to fail gracefully.