Locked swap of thread list into the local variable - no need to keep the lock longer.
Finished feature 57363580/task-manager-not-thread-safe.