registry: add a function regdb_key_is_base_key() to check whether is composite.