Fix Use-after-free in multi-threaded xz decoder.
Approved by: so Security: FreeBSD-SA-25:06.xz Security: CVE-2025-31115