I don’t see protect in elixlsx so you’d have to use the lower level library xml_stream.
protect
elixlsx