Move lua_on_panic() from authd/main.c to common/log/log.c.