Fix bug in libdomain/domain_cap_hash()