libarchive: optional support for xz/lzma

Closes #28478.