Rearranged some __syncthreads()s