ctdb: add ctdb_canonicalize_ip_inplace() helper