Cleanup of orphan class StaticPriorityThreadQueue.