fix forking while iterating over file handles with events, specifically using $_