Also add back an internal "gboolean closed" parameter which I removed when copying the function, it might be useful later and doesn't hurt.
and remove that code from gimpbrush-boundary.c