Fix a bug in the new main/event_foreach test

It wasn't making sure that the events weren't internal.
Clarify an important point about event_base_foreach_event()