Fix memory leaks in ac-tile

Fix memory leaks found using JEMalloc.Most were related to freeing memory at shutdown, but one case was reallocating space for the Goto tables after they had been freed. The was creating 180MB of allocated but unused memory.

Built JEMalloc library with ./configure --enable-profiling. Then ran Suricata and stopped it. Then ran pprof, from JEMalloc, to generate a PDF graph showing where the leaked memory was allocated.

Passes PR scripts:
https://buildbot.openinfosecfoundation.org/builders/ken-tilera/builds/57
https://buildbot.openinfosecfoundation.org/builders/ken-tilera-pcap/builds/62