glretrace: Prevent deadlock on SetWindowPos.

Achieve this by using a dedicated thread to process window events.  It is
the only practical solution for this.
d3dretrace: Assert SetWindowPos is called on the window thread.