Fix the lua package documentation. [ci skip]
Move the lua state finalizer function into the constructor.