CudaThreadSyncron. should return CudaSuccess