libctdb: add ctdb arg to more functions.