win: Run async open dialog in new thread
win: Run async save dialog in new thread
win: Don't hang when failed to create thread
Merge pull request #922 from atom/dialog-thread

Run asynchronous file dialog in new thread on Windows