[PATCH 4/5] imm32: Move IMM_FreeThreadData helper around.