use QMutexLocker in rgbscript too