Use QMutexLocker instead of simple Mutex