Thread safety of confd_connect() with cdb_connect()

Since you are using valgrind, make sure you have setup ConfD for valgrind use. See this post: