lzma: make content of Read function more reasonable

Note that is a short review and fixes the buffer handling. But it might
be still incorrect.