lzma: simplified lenState function used by the distance codec