Add early-out in the libevent beckend to avoid redundant event rescheduling.

See #721.