net: change split_hive_key() to properly allocate subkeyname