Fix replicated dialog profile management in distributed systems

- replication-receiving instances must not do any profile-related
  DB queries
Merge pull request #68 from wdoekes/wjd-fix_nathelper_memleak

Fix memleak in nathelper natping when "failed to fetch contacts".
Fix compilation issue introduced in commit a9fcd84c