fix #4408

- if you try to set WorkerThreadCount higher than N=#_of_cores in springsettings.cfg, Threading code will only allow ThreadPool to use N-1 threads at most.