v5.05 use QMutex when available and Qt thread sample