added lock/unlock to nu_Synchonized<> and fixes its use in threade.cpp POSIX code