[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.