lua output v23.4

Replaces https://github.com/inliniac/suricata/pull/1069

Prscript:
- PR build: https://buildbot.openinfosecfoundation.org/builders/inliniac/builds/6
- PR pcaps: https://buildbot.openinfosecfoundation.org/builders/inliniac-pcap/builds/6