remove unused QAction
Give message and delay threads their own mutexes.