Make sure cgpu exists in the restart threads loop in cases of hotplug etc.