fix(menus): allow max depth of 20 to prevent losing menu items

fixes #5570
Merge pull request #7373 from jdalsem/menu-builder-max-depth

fix(menus): allow max depth of 20 to prevent losing menu items