TS-2190: fix the -Werror build
TS-2251: simplify LogBuffer reference counting