fix bug where device is not restarted after overheating and cooling off
index was into cgpu threads, not into global mining threads