[libcontacts] Limit queried IDs to avoid SQL binding limit. Fixes JB#11956

If we query too many updated contact IDs at once, we cause qtcontacts-sqlite
to create statements that exceed the bound variable limit.