Remove deprecated cudaThreadSynchronize()