issue-610: use TCMallocGetenvSafe from inside malloc

Instead of plain getenv. So that windows getenv implementation that
may call malloc does not deadlock.
2 files changed