[PATCH v8 5/9] gdiplus: Move widen_closed_figure function to be able to use it from add_anchor function.