If GPU execution disabled, don't sync cuda threads in timer.

If you build on a machine with cuda installed but no GPUs,
the timer would still sync threads at start/stop calls, but
CUDA returns an error if you try to sync threads without a
valid device chosen.