Fix return code from gpu_thread_barrier