Lock around setting connection info
Merge pull request #2 from schmichael/threadsafe-set-info

Lock around setting connection info