Implement thread id in windows platform

Implement thread id in windows platform