[shared_buffer] invalid refs in the line buffer destructor