lzma: verify properties in function newWriter

We should not rely on writeHeader to identify improper properties.
Instead we check the properties after they are input into to the code.