Make sure lua data doesn't GC during write