[TF/XLA] Remove an accidentally introduced race condition
[TF/XLA] Remove an accidentally introduced race condition

cl/288939060 has introduced a race condition: previously, the lambda was only run once. This is the intend of the code.

Thanks to hyeontaek@ for discovering the bug.

PiperOrigin-RevId: 289163903
Change-Id: I35939dd84e5e789c5b72da0a8f2f28a0eaec0891

renyi533/tensorflow,petewarden/tensorflow,tensorflow/tensorflow,jhseu/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,petewarden/tensorflow,davidzchen/tensorflow,petewarden/tensorflow,petewarden/tensorflow,davidzchen/tensorflow,paolodedios/tensorflow,davidzchen/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow-pywrap_saved_model,annarev/tensorflow,aldian/tensorflow,petewarden/tensorflow,petewarden/tensorflow,aam-at/tensorflow,gautam1858/tensorflow,yongtang/tensorflow,aldian/tensorflow,sarvex/tensorflow,Intel-tensorflow/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gunan/tensorflow,gunan/tensorflow,xzturn/tensorflow,davidzchen/tensorflow,Intel-Corporation/tensorflow,karllessard/tensorflow,gunan/tensorflow,jhseu/tensorflow,davidzchen/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_saved_model,jhseu/tensorflow,gautam1858/tensorflow,jhseu/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow,karllessard/tensorflow,karllessard/tensorflow,jhseu/tensorflow,aam-at/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,yongtang/tensorflow,paolodedios/tensorflow,jhseu/tensorflow,renyi533/tensorflow,aam-at/tensorflow,cxxgtxy/tensorflow,aam-at/tensorflow,sarvex/tensorflow,gunan/tensorflow,freedomtan/tensorflow,yongtang/tensorflow,jhseu/tensorflow,frreiss/tensorflow-fred,aam-at/tensorflow,frreiss/tensorflow-fred,annarev/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,renyi533/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_saved_model,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_saved_model,gunan/tensorflow,paolodedios/tensorflow,gautam1858/tensorflow,aam-at/tensorflow,paolodedios/tensorflow,davidzchen/tensorflow,frreiss/tensorflow-fred,Intel-tensorflow/tensorflow,paolodedios/tensorflow,davidzchen/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_saved_model,petewarden/tensorflow,frreiss/tensorflow-fred,xzturn/tensorflow,yongtang/tensorflow,renyi533/tensorflow,renyi533/tensorflow,tensorflow/tensorflow,aldian/tensorflow,xzturn/tensorflow,karllessard/tensorflow,jhseu/tensorflow,renyi533/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,yongtang/tensorflow,Intel-Corporation/tensorflow,annarev/tensorflow,Intel-tensorflow/tensorflow,karllessard/tensorflow,freedomtan/tensorflow,aldian/tensorflow,yongtang/tensorflow,cxxgtxy/tensorflow,karllessard/tensorflow,Intel-tensorflow/tensorflow,xzturn/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_saved_model,Intel-tensorflow/tensorflow,Intel-tensorflow/tensorflow,yongtang/tensorflow,jhseu/tensorflow,gunan/tensorflow,annarev/tensorflow,aldian/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,xzturn/tensorflow,freedomtan/tensorflow,paolodedios/tensorflow,yongtang/tensorflow,sarvex/tensorflow,sarvex/tensorflow,Intel-tensorflow/tensorflow,davidzchen/tensorflow,paolodedios/tensorflow,gautam1858/tensorflow,aldian/tensorflow,davidzchen/tensorflow,jhseu/tensorflow,sarvex/tensorflow,renyi533/tensorflow,renyi533/tensorflow,frreiss/tensorflow-fred,cxxgtxy/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-experimental_link_static_libraries_once,jhseu/tensorflow,petewarden/tensorflow,karllessard/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,renyi533/tensorflow,cxxgtxy/tensorflow,renyi533/tensorflow,karllessard/tensorflow,gunan/tensorflow,annarev/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,annarev/tensorflow,Intel-Corporation/tensorflow,aam-at/tensorflow,gunan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,frreiss/tensorflow-fred,sarvex/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,annarev/tensorflow,gautam1858/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,freedomtan/tensorflow,davidzchen/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-Corporation/tensorflow,tensorflow/tensorflow,gautam1858/tensorflow,petewarden/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_saved_model,xzturn/tensorflow,sarvex/tensorflow,paolodedios/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,karllessard/tensorflow,gunan/tensorflow,Intel-Corporation/tensorflow,xzturn/tensorflow,tensorflow/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow,aldian/tensorflow,gunan/tensorflow,gautam1858/tensorflow,Intel-tensorflow/tensorflow,karllessard/tensorflow,sarvex/tensorflow,gunan/tensorflow,aldian/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow,Intel-Corporation/tensorflow,frreiss/tensorflow-fred,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-experimental_link_static_libraries_once,petewarden/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-experimental_link_static_libraries_once,annarev/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gautam1858/tensorflow,karllessard/tensorflow,petewarden/tensorflow,tensorflow/tensorflow,freedomtan/tensorflow,gautam1858/tensorflow,paolodedios/tensorflow,frreiss/tensorflow-fred,yongtang/tensorflow,gunan/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,yongtang/tensorflow,petewarden/tensorflow,annarev/tensorflow,frreiss/tensorflow-fred,annarev/tensorflow,paolodedios/tensorflow,annarev/tensorflow,tensorflow/tensorflow,paolodedios/tensorflow,xzturn/tensorflow,tensorflow/tensorflow,renyi533/tensorflow,renyi533/tensorflow,yongtang/tensorflow,frreiss/tensorflow-fred,Intel-tensorflow/tensorflow,freedomtan/tensorflow,frreiss/tensorflow-fred,xzturn/tensorflow,tensorflow/tensorflow-pywrap_saved_model,jhseu/tensorflow,cxxgtxy/tensorflow,freedomtan/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,xzturn/tensorflow,freedomtan/tensorflow,aam-at/tensorflow