acc: register dialog loaded callbacks after flags init

This solves the bug when CDRs were not written in DB after restart
Reported by Mayama Takeshi, who also provided testing environment

(cherry picked from commit ff839b85d1e7b9122f348d6277d8f93a9bafca9f)