Fix data race in conn_pool