defer disposal of lua context to main thread
Merge pull request #4207 from chrisforbes/deferred-lua-dispose

defer disposal of lua context to main thread