PoolThreadMgr: fix at fork: remove non-existing thread IDs in child
- They crash the child at quit() when the nb. of threads is reduced
- Lock mutex during fork to avoid state corruption
- Remove obsolete setThreadWaitOnQuit: PoolThreadMgr is no longer destroyed