Add get native thread id method.