Implement uv_thread_equal for unix and windows.

Tests are not passing, don't know why.