[duim,gtk] Try switching to single-threaded mode.

Closes #535.