unix-socket: reset logging api's properly

Lack of proper reset lead to logs not being written after the first
pcap had been processed.

Prscript:
- PR build: https://buildbot.suricata-ids.org/builders/inliniac/builds/296
- PR pcaps: https://buildbot.suricata-ids.org/builders/inliniac-pcap/builds/213