ctdb-recovery: Fix signed/unsigned comparison by casting