Fix bug in threadcache where it allocates the TL buffer twice.

Signed-off-by: Michael Lippautz <michael.lippautz@gmail.com>