Rémi Bernon : imm32: Move IMM_FreeThreadData helper around.