defer disposal of lua context to main thread

@ScottNZ: try this.