LuaStateFactory: fix removeLuaState

Using List.set instead of List.add.

This way, overwrites the state instead of inserting a null state and causing issues with state indices being off by one after calling LuaState.close().