#541062 by sun: Fixed privilege escalation does not work for menu access callbacks that statically cache their own results.