Fix Libevent2FileEvent's wait code.