ctdb-tests: Fix signed/unsigned comparisons by casting