add GetCurrentThreadId function and fix bug about the Extend method of LockFreeHashMap class