[PATCH v3 1/1] winemac.drv: Handle windows becoming invalid between WM_QUERYENDSESSION and WM_ENDSESSION.