Fix a race condition
Fix a race condition

There is a window of time between the munmap and the tls_cache being
marked as destroyed, where there could be a bad access to memory that
has been unmapped/freed. Reorder the code a bit to close the window.

Signed-off-by: Paul Pluzhnikov <eceb66078c8d0c18f1ed9d9459677288f3b6e0b8@google.com>

project-zerus/libunwind,olibc/libunwind,libunwind/libunwind,vegard/libunwind,fillexen/libunwind,rntz/libunwind,adsharma/libunwind,geekboxzone/mmallow_external_libunwind,atanasyan/libunwind,igprof/libunwind,vtjnash/libunwind,DroidSim/platform_external_libunwind,olibc/libunwind,DroidSim/platform_external_libunwind,SyndicateRogue/libunwind,atanasyan/libunwind-android,atanasyan/libunwind-android,android-ia/platform_external_libunwind,krytarowski/libunwind,martyone/libunwind,tony/libunwind,jrmuizel/libunwind,maltek/platform_external_libunwind,Chilledheart/libunwind,ehsan/libunwind,djwatson/libunwind,dreal-deps/libunwind,adsharma/libunwind,dreal-deps/libunwind,SyndicateRogue/libunwind,yuyichao/libunwind,cms-externals/libunwind,Keno/libunwind,bo-on-software/libunwind,maltek/platform_external_libunwind,dropbox/libunwind,rantala/libunwind,unkadoug/libunwind,rntz/libunwind,android-ia/platform_external_libunwind,geekboxzone/lollipop_external_libunwind,wdv4758h/libunwind,cloudius-systems/libunwind,cms-externals/libunwind,fdoray/libunwind,rantala/libunwind,geekboxzone/mmallow_external_libunwind,djwatson/libunwind,libunwind/libunwind,wdv4758h/libunwind,tronical/libunwind,zeldin/platform_external_libunwind,mpercy/libunwind,dropbox/libunwind,bo-on-software/libunwind,dagar/libunwind,geekboxzone/lollipop_external_libunwind,adsharma/libunwind,fillexen/libunwind,unkadoug/libunwind,android-ia/platform_external_libunwind,atanasyan/libunwind,dreal-deps/libunwind,frida/libunwind,zliu2014/libunwind-tilegx,maltek/platform_external_libunwind,CyanogenMod/android_external_libunwind,dagar/libunwind,libunwind/libunwind,Keno/libunwind,tkelman/libunwind,androidarmv6/android_external_libunwind,dropbox/libunwind,martyone/libunwind,zeldin/platform_external_libunwind,tronical/libunwind,rogwfu/libunwind,project-zerus/libunwind,mpercy/libunwind,zliu2014/libunwind-tilegx,rogwfu/libunwind,rogwfu/libunwind,tronical/libunwind,frida/libunwind,zliu2014/libunwind-tilegx,atanasyan/libunwind-android,project-zerus/libunwind,bo-on-software/libunwind,evaautomation/libunwind,cms-externals/libunwind,androidarmv6/android_external_libunwind,rntz/libunwind,jrmuizel/libunwind,atanasyan/libunwind,frida/libunwind,androidarmv6/android_external_libunwind,joyent/libunwind,tkelman/libunwind,tkelman/libunwind,fillexen/libunwind,geekboxzone/lollipop_external_libunwind,CyanogenMod/android_external_libunwind,CyanogenMod/android_external_libunwind,vegard/libunwind,vegard/libunwind,yuyichao/libunwind,DroidSim/platform_external_libunwind,cloudius-systems/libunwind,cloudius-systems/libunwind,vtjnash/libunwind,evaautomation/libunwind,olibc/libunwind,Chilledheart/libunwind,Chilledheart/libunwind,tony/libunwind,ehsan/libunwind,igprof/libunwind,yuyichao/libunwind,SyndicateRogue/libunwind,wdv4758h/libunwind,unkadoug/libunwind,djwatson/libunwind,jrmuizel/libunwind,krytarowski/libunwind,Keno/libunwind,pathscale/libunwind,mpercy/libunwind,rantala/libunwind,pathscale/libunwind,igprof/libunwind,ehsan/libunwind,joyent/libunwind,joyent/libunwind,fdoray/libunwind,pathscale/libunwind,fdoray/libunwind,vtjnash/libunwind,zeldin/platform_external_libunwind,evaautomation/libunwind,dagar/libunwind,geekboxzone/mmallow_external_libunwind,krytarowski/libunwind,tony/libunwind,martyone/libunwind