added some support for thread-local variables and recursive mutexes (posix threads only so far) Rev: src/threads.h:1.105