EmailSearchStore: Lock the mutex before accessing the db

BUG: 335546
Fix commit contact. Now when we change contact value we commit it.

CCMAIL: faure@kde.org