create a ctdb_attachdb_recv() function for libctdb.