[tf.data] Fix potential destruction race in IteratorGetNext.
[tf.data] Fix potential destruction race in IteratorGetNext.

PiperOrigin-RevId: 188411125

snnn/tensorflow,aam-at/tensorflow,DavidNorman/tensorflow,arborh/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gunan/tensorflow,frreiss/tensorflow-fred,davidzchen/tensorflow,yanchen036/tensorflow,adit-chandra/tensorflow,tensorflow/tensorflow,caisq/tensorflow,kevin-coder/tensorflow-fork,allenlavoie/tensorflow,theflofly/tensorflow,aselle/tensorflow,apark263/tensorflow,karllessard/tensorflow,renyi533/tensorflow,jhseu/tensorflow,caisq/tensorflow,caisq/tensorflow,manipopopo/tensorflow,jart/tensorflow,AnishShah/tensorflow,yongtang/tensorflow,paolodedios/tensorflow,snnn/tensorflow,ageron/tensorflow,meteorcloudy/tensorflow,seanli9jan/tensorflow,DavidNorman/tensorflow,adit-chandra/tensorflow,jbedorf/tensorflow,Intel-Corporation/tensorflow,hehongliang/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-Corporation/tensorflow,nburn42/tensorflow,aam-at/tensorflow,jart/tensorflow,frreiss/tensorflow-fred,jhseu/tensorflow,dancingdan/tensorflow,girving/tensorflow,adit-chandra/tensorflow,ZhangXinNan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gunan/tensorflow,AnishShah/tensorflow,aldian/tensorflow,brchiu/tensorflow,gojira/tensorflow,ppwwyyxx/tensorflow,davidzchen/tensorflow,jalexvig/tensorflow,brchiu/tensorflow,theflofly/tensorflow,allenlavoie/tensorflow,ghchinoy/tensorflow,kevin-coder/tensorflow-fork,allenlavoie/tensorflow,alsrgv/tensorflow,ageron/tensorflow,xzturn/tensorflow,aam-at/tensorflow,asimshankar/tensorflow,gojira/tensorflow,aam-at/tensorflow,renyi533/tensorflow,adit-chandra/tensorflow,theflofly/tensorflow,aam-at/tensorflow,benoitsteiner/tensorflow-xsmm,hehongliang/tensorflow,yanchen036/tensorflow,jbedorf/tensorflow,renyi533/tensorflow,drpngx/tensorflow,alshedivat/tensorflow,apark263/tensorflow,ghchinoy/tensorflow,girving/tensorflow,frreiss/tensorflow-fred,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,ageron/tensorflow,cxxgtxy/tensorflow,alsrgv/tensorflow,AnishShah/tensorflow,dancingdan/tensorflow,Intel-tensorflow/tensorflow,aldian/tensorflow,AnishShah/tensorflow,ZhangXinNan/tensorflow,eaplatanios/tensorflow,karllessard/tensorflow,brchiu/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,lukeiwanski/tensorflow,freedomtan/tensorflow,hfp/tensorflow-xsmm,paolodedios/tensorflow,xodus7/tensorflow,Intel-Corporation/tensorflow,davidzchen/tensorflow,Bismarrck/tensorflow,annarev/tensorflow,karllessard/tensorflow,xodus7/tensorflow,ageron/tensorflow,Intel-tensorflow/tensorflow,ghchinoy/tensorflow,ghchinoy/tensorflow,gautam1858/tensorflow,chemelnucfin/tensorflow,hehongliang/tensorflow,caisq/tensorflow,jendap/tensorflow,gunan/tensorflow,ppwwyyxx/tensorflow,AnishShah/tensorflow,jalexvig/tensorflow,frreiss/tensorflow-fred,gautam1858/tensorflow,sarvex/tensorflow,meteorcloudy/tensorflow,yanchen036/tensorflow,jhseu/tensorflow,ppwwyyxx/tensorflow,davidzchen/tensorflow,yongtang/tensorflow,Bismarrck/tensorflow,Bismarrck/tensorflow,freedomtan/tensorflow,aselle/tensorflow,cxxgtxy/tensorflow,petewarden/tensorflow,kevin-coder/tensorflow-fork,sarvex/tensorflow,allenlavoie/tensorflow,jbedorf/tensorflow,chemelnucfin/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow,aselle/tensorflow,karllessard/tensorflow,ghchinoy/tensorflow,aselle/tensorflow,adit-chandra/tensorflow,lukeiwanski/tensorflow,seanli9jan/tensorflow,tensorflow/tensorflow,karllessard/tensorflow,brchiu/tensorflow,gojira/tensorflow,hfp/tensorflow-xsmm,yongtang/tensorflow,tensorflow/tensorflow-pywrap_saved_model,freedomtan/tensorflow,dendisuhubdy/tensorflow,Intel-Corporation/tensorflow,freedomtan/tensorflow,girving/tensorflow,gautam1858/tensorflow,ageron/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,dancingdan/tensorflow,arborh/tensorflow,hfp/tensorflow-xsmm,tensorflow/tensorflow-pywrap_saved_model,yanchen036/tensorflow,arborh/tensorflow,yongtang/tensorflow,aldian/tensorflow,freedomtan/tensorflow,eaplatanios/tensorflow,tensorflow/tensorflow-pywrap_saved_model,benoitsteiner/tensorflow-xsmm,adit-chandra/tensorflow,drpngx/tensorflow,xodus7/tensorflow,ZhangXinNan/tensorflow,gunan/tensorflow,gautam1858/tensorflow,jart/tensorflow,jhseu/tensorflow,tensorflow/tensorflow,AnishShah/tensorflow,Xeralux/tensorflow,caisq/tensorflow,aldian/tensorflow,jbedorf/tensorflow,AnishShah/tensorflow,Bismarrck/tensorflow,adit-chandra/tensorflow,ppwwyyxx/tensorflow,kobejean/tensorflow,dongjoon-hyun/tensorflow,AnishShah/tensorflow,alsrgv/tensorflow,paolodedios/tensorflow,hfp/tensorflow-xsmm,arborh/tensorflow,aam-at/tensorflow,Xeralux/tensorflow,asimshankar/tensorflow,dendisuhubdy/tensorflow,allenlavoie/tensorflow,sarvex/tensorflow,ageron/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,ageron/tensorflow,seanli9jan/tensorflow,jbedorf/tensorflow,Intel-tensorflow/tensorflow,annarev/tensorflow,asimshankar/tensorflow,jbedorf/tensorflow,petewarden/tensorflow,gautam1858/tensorflow,eaplatanios/tensorflow,freedomtan/tensorflow,allenlavoie/tensorflow,aldian/tensorflow,kobejean/tensorflow,xzturn/tensorflow,apark263/tensorflow,hfp/tensorflow-xsmm,manipopopo/tensorflow,jhseu/tensorflow,meteorcloudy/tensorflow,nburn42/tensorflow,seanli9jan/tensorflow,apark263/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow,jalexvig/tensorflow,davidzchen/tensorflow,cxxgtxy/tensorflow,jbedorf/tensorflow,renyi533/tensorflow,ghchinoy/tensorflow,ppwwyyxx/tensorflow,ghchinoy/tensorflow,nburn42/tensorflow,aldian/tensorflow,dendisuhubdy/tensorflow,ghchinoy/tensorflow,tensorflow/tensorflow,drpngx/tensorflow,meteorcloudy/tensorflow,kevin-coder/tensorflow-fork,alshedivat/tensorflow,lukeiwanski/tensorflow,lukeiwanski/tensorflow,nburn42/tensorflow,seanli9jan/tensorflow,dancingdan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,snnn/tensorflow,aselle/tensorflow,alshedivat/tensorflow,jart/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,benoitsteiner/tensorflow-xsmm,nburn42/tensorflow,tensorflow/tensorflow-pywrap_saved_model,gunan/tensorflow,xodus7/tensorflow,brchiu/tensorflow,gautam1858/tensorflow,benoitsteiner/tensorflow-xsmm,manipopopo/tensorflow,dancingdan/tensorflow,aam-at/tensorflow,caisq/tensorflow,theflofly/tensorflow,xodus7/tensorflow,alshedivat/tensorflow,brchiu/tensorflow,Xeralux/tensorflow,annarev/tensorflow,nburn42/tensorflow,AnishShah/tensorflow,tensorflow/tensorflow-pywrap_saved_model,kobejean/tensorflow,dongjoon-hyun/tensorflow,jendap/tensorflow,freedomtan/tensorflow,chemelnucfin/tensorflow,DavidNorman/tensorflow,gautam1858/tensorflow,Xeralux/tensorflow,eaplatanios/tensorflow,meteorcloudy/tensorflow,DavidNorman/tensorflow,jalexvig/tensorflow,brchiu/tensorflow,Intel-tensorflow/tensorflow,arborh/tensorflow,apark263/tensorflow,asimshankar/tensorflow,nburn42/tensorflow,DavidNorman/tensorflow,dendisuhubdy/tensorflow,eaplatanios/tensorflow,DavidNorman/tensorflow,chemelnucfin/tensorflow,gunan/tensorflow,frreiss/tensorflow-fred,xodus7/tensorflow,annarev/tensorflow,yanchen036/tensorflow,arborh/tensorflow,seanli9jan/tensorflow,arborh/tensorflow,yanchen036/tensorflow,gojira/tensorflow,Bismarrck/tensorflow,davidzchen/tensorflow,kevin-coder/tensorflow-fork,manipopopo/tensorflow,lukeiwanski/tensorflow,apark263/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,nburn42/tensorflow,aselle/tensorflow,kevin-coder/tensorflow-fork,dongjoon-hyun/tensorflow,xzturn/tensorflow,alshedivat/tensorflow,eaplatanios/tensorflow,xodus7/tensorflow,benoitsteiner/tensorflow-xsmm,renyi533/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,petewarden/tensorflow,freedomtan/tensorflow,Xeralux/tensorflow,theflofly/tensorflow,cxxgtxy/tensorflow,xodus7/tensorflow,snnn/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,jart/tensorflow,kobejean/tensorflow,kevin-coder/tensorflow-fork,frreiss/tensorflow-fred,paolodedios/tensorflow,ZhangXinNan/tensorflow,dongjoon-hyun/tensorflow,tensorflow/tensorflow,ghchinoy/tensorflow,jhseu/tensorflow,dongjoon-hyun/tensorflow,hfp/tensorflow-xsmm,aselle/tensorflow,asimshankar/tensorflow,paolodedios/tensorflow,ZhangXinNan/tensorflow,jendap/tensorflow,apark263/tensorflow,yongtang/tensorflow,jalexvig/tensorflow,girving/tensorflow,dancingdan/tensorflow,annarev/tensorflow,snnn/tensorflow,nburn42/tensorflow,tensorflow/tensorflow,Intel-tensorflow/tensorflow,meteorcloudy/tensorflow,ageron/tensorflow,xzturn/tensorflow,jhseu/tensorflow,dendisuhubdy/tensorflow,eaplatanios/tensorflow,allenlavoie/tensorflow,aselle/tensorflow,sarvex/tensorflow,benoitsteiner/tensorflow-xsmm,dongjoon-hyun/tensorflow,hehongliang/tensorflow,yongtang/tensorflow,davidzchen/tensorflow,DavidNorman/tensorflow,jalexvig/tensorflow,alshedivat/tensorflow,jbedorf/tensorflow,arborh/tensorflow,girving/tensorflow,frreiss/tensorflow-fred,snnn/tensorflow,dendisuhubdy/tensorflow,alsrgv/tensorflow,jendap/tensorflow,arborh/tensorflow,renyi533/tensorflow,chemelnucfin/tensorflow,annarev/tensorflow,yanchen036/tensorflow,snnn/tensorflow,xzturn/tensorflow,jhseu/tensorflow,ageron/tensorflow,petewarden/tensorflow,dancingdan/tensorflow,drpngx/tensorflow,kobejean/tensorflow,asimshankar/tensorflow,alshedivat/tensorflow,yanchen036/tensorflow,Xeralux/tensorflow,Xeralux/tensorflow,chemelnucfin/tensorflow,DavidNorman/tensorflow,meteorcloudy/tensorflow,tensorflow/tensorflow-pywrap_saved_model,jbedorf/tensorflow,jart/tensorflow,sarvex/tensorflow,jendap/tensorflow,nburn42/tensorflow,kevin-coder/tensorflow-fork,benoitsteiner/tensorflow-xsmm,sarvex/tensorflow,allenlavoie/tensorflow,annarev/tensorflow,hfp/tensorflow-xsmm,gautam1858/tensorflow,DavidNorman/tensorflow,dancingdan/tensorflow,girving/tensorflow,annarev/tensorflow,aam-at/tensorflow,jbedorf/tensorflow,jendap/tensorflow,xzturn/tensorflow,snnn/tensorflow,petewarden/tensorflow,yongtang/tensorflow,apark263/tensorflow,Intel-tensorflow/tensorflow,arborh/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,xzturn/tensorflow,xodus7/tensorflow,chemelnucfin/tensorflow,benoitsteiner/tensorflow-xsmm,jendap/tensorflow,chemelnucfin/tensorflow,eaplatanios/tensorflow,ageron/tensorflow,tensorflow/tensorflow,ppwwyyxx/tensorflow,brchiu/tensorflow,apark263/tensorflow,theflofly/tensorflow,sarvex/tensorflow,seanli9jan/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow-pywrap_saved_model,apark263/tensorflow,alsrgv/tensorflow,eaplatanios/tensorflow,xzturn/tensorflow,frreiss/tensorflow-fred,ppwwyyxx/tensorflow,jart/tensorflow,gojira/tensorflow,tensorflow/tensorflow,Intel-Corporation/tensorflow,annarev/tensorflow,jendap/tensorflow,yongtang/tensorflow,hehongliang/tensorflow,apark263/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,dongjoon-hyun/tensorflow,dongjoon-hyun/tensorflow,allenlavoie/tensorflow,tensorflow/tensorflow-pywrap_saved_model,alshedivat/tensorflow,DavidNorman/tensorflow,xzturn/tensorflow,Xeralux/tensorflow,DavidNorman/tensorflow,gojira/tensorflow,alsrgv/tensorflow,kevin-coder/tensorflow-fork,tensorflow/tensorflow-experimental_link_static_libraries_once,jalexvig/tensorflow,drpngx/tensorflow,alsrgv/tensorflow,adit-chandra/tensorflow,kobejean/tensorflow,davidzchen/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_tf_optimizer,jalexvig/tensorflow,aam-at/tensorflow,theflofly/tensorflow,Intel-Corporation/tensorflow,caisq/tensorflow,paolodedios/tensorflow,xodus7/tensorflow,gunan/tensorflow,theflofly/tensorflow,ZhangXinNan/tensorflow,chemelnucfin/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,arborh/tensorflow,freedomtan/tensorflow,paolodedios/tensorflow,eaplatanios/tensorflow,ppwwyyxx/tensorflow,gautam1858/tensorflow,lukeiwanski/tensorflow,Xeralux/tensorflow,dancingdan/tensorflow,adit-chandra/tensorflow,dongjoon-hyun/tensorflow,seanli9jan/tensorflow,kobejean/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,manipopopo/tensorflow,ghchinoy/tensorflow,theflofly/tensorflow,drpngx/tensorflow,manipopopo/tensorflow,petewarden/tensorflow,gojira/tensorflow,yongtang/tensorflow,meteorcloudy/tensorflow,dongjoon-hyun/tensorflow,dancingdan/tensorflow,aam-at/tensorflow,nburn42/tensorflow,hfp/tensorflow-xsmm,asimshankar/tensorflow,dendisuhubdy/tensorflow,aselle/tensorflow,Bismarrck/tensorflow,sarvex/tensorflow,Bismarrck/tensorflow,seanli9jan/tensorflow,manipopopo/tensorflow,alsrgv/tensorflow,gunan/tensorflow,ghchinoy/tensorflow,davidzchen/tensorflow,jalexvig/tensorflow,allenlavoie/tensorflow,eaplatanios/tensorflow,caisq/tensorflow,dongjoon-hyun/tensorflow,aam-at/tensorflow,jendap/tensorflow,ZhangXinNan/tensorflow,ppwwyyxx/tensorflow,kobejean/tensorflow,jhseu/tensorflow,jbedorf/tensorflow,snnn/tensorflow,alsrgv/tensorflow,alsrgv/tensorflow,aldian/tensorflow,yongtang/tensorflow,Intel-Corporation/tensorflow,snnn/tensorflow,jhseu/tensorflow,manipopopo/tensorflow,petewarden/tensorflow,chemelnucfin/tensorflow,dendisuhubdy/tensorflow,xodus7/tensorflow,Bismarrck/tensorflow,ZhangXinNan/tensorflow,ZhangXinNan/tensorflow,Xeralux/tensorflow,girving/tensorflow,annarev/tensorflow,Intel-Corporation/tensorflow,jart/tensorflow,brchiu/tensorflow,jalexvig/tensorflow,AnishShah/tensorflow,girving/tensorflow,asimshankar/tensorflow,manipopopo/tensorflow,gojira/tensorflow,kobejean/tensorflow,benoitsteiner/tensorflow-xsmm,Bismarrck/tensorflow,Bismarrck/tensorflow,gunan/tensorflow,cxxgtxy/tensorflow,aam-at/tensorflow,frreiss/tensorflow-fred,kevin-coder/tensorflow-fork,karllessard/tensorflow,hfp/tensorflow-xsmm,ppwwyyxx/tensorflow,gautam1858/tensorflow,hfp/tensorflow-xsmm,AnishShah/tensorflow,Intel-tensorflow/tensorflow,drpngx/tensorflow,annarev/tensorflow,dendisuhubdy/tensorflow,manipopopo/tensorflow,renyi533/tensorflow,brchiu/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,jbedorf/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,chemelnucfin/tensorflow,lukeiwanski/tensorflow,petewarden/tensorflow,hehongliang/tensorflow,gautam1858/tensorflow,chemelnucfin/tensorflow,dendisuhubdy/tensorflow,theflofly/tensorflow,seanli9jan/tensorflow,aselle/tensorflow,karllessard/tensorflow,arborh/tensorflow,renyi533/tensorflow,benoitsteiner/tensorflow-xsmm,renyi533/tensorflow,davidzchen/tensorflow,alshedivat/tensorflow,caisq/tensorflow,jart/tensorflow,jhseu/tensorflow,snnn/tensorflow,renyi533/tensorflow,gojira/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,girving/tensorflow,asimshankar/tensorflow,aselle/tensorflow,theflofly/tensorflow,lukeiwanski/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,seanli9jan/tensorflow,hfp/tensorflow-xsmm,tensorflow/tensorflow,drpngx/tensorflow,meteorcloudy/tensorflow,lukeiwanski/tensorflow,frreiss/tensorflow-fred,kevin-coder/tensorflow-fork,ZhangXinNan/tensorflow,davidzchen/tensorflow,gautam1858/tensorflow,allenlavoie/tensorflow,alsrgv/tensorflow,alshedivat/tensorflow,cxxgtxy/tensorflow,renyi533/tensorflow,xzturn/tensorflow,karllessard/tensorflow,ghchinoy/tensorflow,cxxgtxy/tensorflow,drpngx/tensorflow,ppwwyyxx/tensorflow,jalexvig/tensorflow,benoitsteiner/tensorflow-xsmm,ageron/tensorflow,gunan/tensorflow,davidzchen/tensorflow,paolodedios/tensorflow,karllessard/tensorflow,petewarden/tensorflow,theflofly/tensorflow,asimshankar/tensorflow,adit-chandra/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,jendap/tensorflow,Bismarrck/tensorflow,manipopopo/tensorflow,jendap/tensorflow,gunan/tensorflow,kobejean/tensorflow,petewarden/tensorflow,petewarden/tensorflow,petewarden/tensorflow,karllessard/tensorflow,lukeiwanski/tensorflow,asimshankar/tensorflow,gunan/tensorflow,ageron/tensorflow,renyi533/tensorflow,adit-chandra/tensorflow,girving/tensorflow,Intel-tensorflow/tensorflow,adit-chandra/tensorflow,paolodedios/tensorflow,kobejean/tensorflow,gojira/tensorflow,alshedivat/tensorflow,hehongliang/tensorflow,gojira/tensorflow,alsrgv/tensorflow,jart/tensorflow,meteorcloudy/tensorflow,caisq/tensorflow,xzturn/tensorflow,jhseu/tensorflow,karllessard/tensorflow,xzturn/tensorflow,frreiss/tensorflow-fred,ZhangXinNan/tensorflow,paolodedios/tensorflow,drpngx/tensorflow,girving/tensorflow,cxxgtxy/tensorflow,freedomtan/tensorflow,Xeralux/tensorflow,brchiu/tensorflow,aldian/tensorflow,DavidNorman/tensorflow,dancingdan/tensorflow