Allow explicit definition of number-of-CPUs in Thread Manager.

Setter that allows to explicitly define number-of-Cpu for ThreadManager(). ...helps with testing.