[KRDC-1] Use current thread instead of TLS to it
Current implementation relies on setting current thread pointer inside
the thread-local storage of current thread itself. We don't need this
workaround as we only ever need to get a pointer to the thread and it
can be done without relying on TLS.