I found that if I increase the wine app's priority then I no longer get the Xids, attempts to yield while atomic, or system crashes.
eg if my app is called test.exe:
sudo renice -n -15 `pidof test.exe`
(you can check if it has worked with schedtool `pidof test.exe`).
Does that help with your issue?