xz: Check for filter chain compatibility for --flush-timeout.

This avoids LZMA_PROG_ERROR from lzma_code() with filter chains
that don't support LZMA_SYNC_FLUSH.
liblzma: Add lzma_cputhreads().
xz: Use lzma_cputhreads() instead of own copy of tuklib_cpucores().