Fix deadlock.

It occurred when a render thread wants to display a dialog and the main
thread wants to abort that precise render thread.
Merge branch 'workshop' of https://github.com/MrKepzie/Natron into workshop