threads: let vlc_join tell if the joined thread was canceled
The arbitrary value may collide with an actual thread return value.
We can then remove VLC_THREAD_CANCELED
.
Deprecates !770 (merged)
Update
v2: added a check on a TLS test that uses the return value of a thread (even though the file doesn't use cancelation).
Edited by Steve Lhomme