Fix destruction of TaskThread objects
Self assignment optimized for Holder objects