[^anton] fix deadlock in LogModel
(cherry picked from commit 37fb88b)