pthread: next try on freeing threads without crashing. This should fix mingw
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>