add a new support function ctdb_check_counter_equal()