hr: move metadata_type_t to lib/hr for type printing
Also renames metadata_type_t → hr_metadata_type_t.