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