cudaErrorCheck_goto on cudaThreadSynchronize() calls