make HTTP connection pool fork- and thread- safe