Detach threads explicitly.