Bugfix: Deadlock in folder context menu in a folder selection dialog

We fixed a deadlock when a user requested a context menu in a folder selection dialog on Windows.

https://github.com/owncloud/client/issues/9681
