TLSConnection, UVUtils: ensure that thread checks compare values returned by uv_thread_self().

On Windows, uv_thread_create() returns a handle as its thread identifier, where as
uv_thread_self() returns a thread ID.  To ensure our checks are effective, ensure
that we alwyas check against the output of uv_thread_self() on all platforms.