Use Qt's d-pointer implementation in AccountsModel
Need for the change comes from bug #391251. It's more like a try and
check, because I cannot reproduce bug from the report.
Backport to 5.0 branch
(based on cherry picked commit d442173234276a5fa1cc486182f1f314993533bb)