Make recording state in tests thread-safe (#521)
Make recording state in tests thread-safe (#521)

Motivation:

When the tests are run with TSAN, it complained about
concurrent modification of states in the connectivity state
recording delegate.

Modifications:

Guard access to the recorded states via a lock.

Result:

TSAN doesn't complain when running the tests.
grpc/grpc-swift,grpc/grpc-swift,grpc/grpc-swift,grpc/grpc-swift,grpc/grpc-swift