packet handling: fix release function

Extended data were freed before the release function was called.
The result was that, in AF_PACKET IPS mode, the release function
was only sending void data because it the content of the extended
data is the content of the packet.

This patch updates the code to have the freeing of extended data
done in the cleaning function for a packet which is called by the
release function. This improves consistency of the code and fixes
the bug.

Redmine ticket:
https://redmine.openinfosecfoundation.org/issues/1176

PR builds:
- PR build: https://buildbot.suricata-ids.org/builders/regit/builds/127
- PR pcaps: https://buildbot.suricata-ids.org/builders/regit-pcap/builds/66