Added queue and mutex for events in erizoAPI
Potentially, events could be lost