[Utils] Add a new method: getThreadId().