client: deterministic connection per thread