[lzbuf] Added lzbuf_rlength()
[lzbuf] only realloc when buf len > 0