[tf.data] Fix destruction race in `tf.data.contrib.get_single_element()`.
[tf.data] Fix destruction race in `tf.data.contrib.get_single_element()`.

PiperOrigin-RevId: 202995903

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