Separate mutexes for dt_threading and qt_qthread (issue #272)