ctdb: add ctdb_connection_same() helper