ctdb-common: Fix signed/unsigned comparisons by declaring as unsigned