Checks or unchecks a checkable menu item. A menu item is is created as checkable with append.
If check? is #f, the menu item identified by id is unchecked, otherwise it is checked.