fixing bug #120870 try to avoid problem with uninitialized mutexes Daniel * globals.c threads.c: fixing bug #120870 try to avoid problem with uninitialized mutexes Daniel