[PATCH 03/24] selftests/resctrl: Refactor get_cbm_mask()