Implement TLS waits, fix allocation bug

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