Update native for Qt Window
Add mutex lock. Wait cond didn't work without it.
Merge pull request #29 from Xele02/qtwindow

Update native for Qt Window