P.S.
I should be more precise: P1 and P2 are different Wine *threads* (and Linux processes). Shouldn't all threads use the *same* X11 lock, such that only one thread at a time can have the X11 lock?
I am using the current CVS version (I have made an update yesterday).
Till