[qtcontacts-sqlite] Iterate over locked data table

Ensure that a writing process does not modify the transient data while
it is being traversed by a reader.
Merge pull request #162 from matthewvogt/locked-iteration

[qtcontacts-sqlite] Iterate over locked data table