Fix luajit callback leak.

Since luajit only allows a limited number of callbacks, we ought to free them
after each use. Otherwise we can run into a 'too many callbacks' error.