* src/misc/threads.c, include/vlc_threads_funcs.h: another bunch of fixes