TIKA-1369 Avoid ThreadLocal usage from Memory Leak

Hi @chrismattmann ,

Based on our discussion from https://github.com/apache/tika/pull/15 I've added the ThreadLocal clean up part, so theoretically it won't suffer from the scenario that @grossws mentioned.

Cheers,
Vilmos