ctdb: Fix hex to int conversion in h2i