intel/compiler: Refactor TCS invocation ID setup into a helper