Themed menus: clean up processing of includes.

Removes the ephemeral m_recursionLevel field from MenuBase, and
handles the guarding against infinite include recursion through method
arguments.  Refs #11533.