[PATCH 3/4] gdiplus: Add a helper to check for metafile graphics context.