doc: added a code example for init_worker_by_lua.