Implement TLS waits, fix allocation bug

Oops, was moding by the wrong thing.  Does not fix God Eater Burst 2, but seems correct.

-[Unknown]