[qtcontacts-sqlite] Simplify class declaration for TwoWayContactSyncAdapter

Move functions that have no reference to member data to an anonymous
namespace.