support multiple threads share an env var

Signed-off-by: Michael Zhang <zhangcheng@rbcon.com>