demux: use talloc for sh_* structs and "lang" field