[PATCH 03/13] selftests/resctrl: Consolidate get_domain_id() into resctrl_val()