Fix event dispatcher problem when event is posted

Added synchronization for adding observer with event queue
pull and post. Avoided double deletion of observer.

Bug:19850586
Change-Id: I336f5cefde02fd76bd65f8ef966693837bcd8401
1 file changed