Bug 991: threshold memory leak

Initialize threshold host storage properly and fix storage api "free" function.

https://buildbot.suricata-ids.org/builders/inliniac/builds/24
https://redmine.openinfosecfoundation.org/issues/991