[core_lua] Forward worker pointer to log functions in some lua functions

This fixes 2 things:
 * won't need global server lock for logging in worker context
 * order of log entries; worker context log gets committed to
   global list in the event loop
[mod_lua] fix ttl handling for lua.handler
[mod_lua] fix docs