migration: T6007: write configtree operations to log
(cherry picked from commit 9388f62783849854fb9ca9852b5dc285932cf562)