Previously we limited the use of atomics and TLS to programs
linked with --shared-memory.
However, as of https://reviews.llvm.org/D79530 we now allow
programs that use atomic to be linked without --shared-memory.
For this to be useful we also want to all TLS usage in such
programs. In this case, since we know we are single threaded
we simply include the TLS data as a regular active segment
and create an immutable __tls_base global that point to the
start of this segment.
Fixes: https://github.com/emscripten-core/emscripten/issues/12489
It might be useful to say why we don't also need to define __tls_size and __tls_align in this case and also why __tls_base can be optional in this case but not in the shared case.