Fix data race in client connection test

Signed-off-by: Michael Fraenkel <fraenkel@us.ibm.com>