eventsource: fix potential sync problems.