[qtcontacts-sqlite] Detect partial-upsync artifacts

This commit adds detection for artifacts of partially-successful
synchronisation cycles, to avoid creating server-side duplicates
of locally-added contacts due to sync failures late in the upsync
procedure (eg, where upsyncs are paginated, for example).