lsyslog: avoid possible ident corruption

On some systems, openlog() caches the pointer and thus, as the Lua
program runs, ident can get corrupted. The new lsyslog_open() passes a
static copy to openlog() instead of the original Lua string.

Thank you to Sean Conner for pointing out this issue.