Update native for Qt Window
Add mutex lock. Wait cond didn't work without it.