Bug detect flow locking v0.1

Bug 1101: https://redmine.openinfosecfoundation.org/issues/1101

Prscript:
- PR build: https://buildbot.suricata-ids.org/builders/inliniac/builds/269
- PR pcaps: https://buildbot.suricata-ids.org/builders/inliniac-pcap/builds/188