Added fields threadManagerLock mutex, and aThreadBecameFree condition.
Initialized threadManagerLock and ThreadManager
Implemented GetANewThread