lua, monitor: Further compiler warning fixes

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