reparent_thread: don't call kill_orphaned_pgrp() if task_detached()