[DF-4152] Thread ID is simplified to uint32. Each Thread have his own unique Id (increments for each new Thread). More common logic for Thread methods. Less code placed into platform depended macros.