This is a native Lua library that allows the creation of immutable tables.
$ luarocks install --server=https://luarocks.org/dev immutable-table
root