In fact the TestAccess below is enough to hide/show the menu if workflow are activated and it only need the LocGroup to put it in the right place.

the test was done only once at webapp startup, so If workflow were disabled, the menu would stay hidden ( Hidden > TestAccess > LocGroup)