make use of VLC_THREAD_CANCELED on win32/os2/android
In thread tests there is a test to check a canceled thread returns the VLC_THREAD_CANCELED
value. But it's only useful if the value is not the same value as when a thread terminates normally. This test likely only passed with the pthread implementation of threads.
Extracted and expanded from !759 (closed)