support detach on 32-bit ARM (AArch64 finished)
To determine whether a thread has exited I'm storing a value in the app TLS slot we're using. To properly detach we'll need to instead restore that value. This issue covers coming up with some other solution to the problem of figuring out whether a thread has exited, or else delaying the detach value restore.