Workaround for QMutexLocker problem.