registry: move normalize_dbkey() from lib/util_reg.c to registry/reg_util.c