(F) Locked Electrical Equipment Rooms or Enclosures.
Electrical equipment rooms or enclosures housing electrical
apparatus that are controlled by a lock(s) shall be considered
accessible to qualified persons.
The breaker that is mount in a generator enclosure will be considered in compliance with this section only when it has a lock that is controlled with a key, and not an Allen wrench. When the section was written it did not include an Allen wrench in the standard so it is not part of the code section.
So long as it is controlled by a key it will be incompliance with this section.