[PATCH v6 5/6] gdiplus: Re-implement trace_path to avoid circular dependency