ctdb-common: Add traverse_update function to db_hash abstraction