[qtcontacts-sqlite] Use thread mutex for extra safety

Although qtcontacts-sqlite is not designed for multi-threaded use,
use an in-process mutex to protect access to the IPC mutex, in case
multi-threaded access occurs.