minor fixed to Threads code (noticed iwth gcc)