Fixing control dependency which caused flaky tests when RNN steps ran in parallel.
Fixing control dependency which caused flaky tests when RNN steps ran in parallel.

PiperOrigin-RevId: 249112369

tensorflow/tensor2tensor,tensorflow/tensor2tensor,tensorflow/tensor2tensor,tensorflow/tensor2tensor,tensorflow/tensor2tensor