emscripten: fix pthread_self warnings
pthread_self returns pthread_t
, on a toolchain update, the compiler :
- errors for the code as it is, because it refuses to implicitely cast pthread_t to unsigned long.
- warns if we cast pthread_t to unsigned long.
This is a suggestion for a fix.
Edited by Mehdi Sabwat