Fix "Mark entries as bot entries" feature
With the new logging system, recent changes are not updated
synchronously anymore, so the hack with temporary rights
doesn't work. The core interface isn't much flexible, so
another hack is needed.
Bug: T296297
Change-Id: Id6cb466a71323a3a8f5be723651d7c7915d0acca
(cherry picked from commit 832c989a8292e2ed39c98a341a1fd6484076b157)