Bug detect flow locking v0.1

Prscript:
- PR build: https://buildbot.suricata-ids.org/builders/inliniac/builds/269
- PR pcaps: https://buildbot.suricata-ids.org/builders/inliniac-pcap/builds/188