libxml2: fix opportunistic linking against liblzma

Fixes #30126.