Fix remove menu performance on Windows

This fixes menu drawing performance for `RemoveMenu()` and `RemoveMenuItem()` in the same way that pull request https://github.com/adobe/brackets-shell/pull/377 fixed it for `AddMenu()`.

I noticed this issue when reviewing pull request https://github.com/adobe/brackets/pull/6334.