Detect locked threads
Clean up thread contents class