This converts the public `uiItemMenuF` and `uiItemMenuFN` functions to an object oriented API (an `uiLayout::menu_fn` and `uiLayout::menu_fn_argN_free` respectively), following recent uiLayout changes. Part of: #117604 Pull Request: https://projects.blender.org/blender/blender/pulls/138902