lz_extend: simplify lz_extend() slightly