std: Fix perf of local allocations in newsched

Mostly optimizing TLS accesses to bring local heap allocation performance
closer to that of oldsched. It's not completely at parity but removing the
branches involved in supported oldsched and optimizing pthread_get/setspecific
to instead use our dedicated TCB slot will probably make up for it.