ctdb-common: Add sock_client abstraction