[PATCH v4 2/5] ddraw: Check surface flags when marking surface as lost.