lua, monitor: Fixed compiler warnings
Merge remote-tracking branch 'talien/feature/lua-fixes' into 3.5/master
lua, monitor: Further compiler warning fixes

Signed-off-by: Gergely Nagy <algernon@balabit.hu>