Add synchronization for invokeForAllObservers call

invokeForAllObservers can be called from different threads.
So, there might be a scenario where beginBroadcast is done
before endBroadcast is complete. Synchronize to avoid this
issue.

Change-Id: I7b3133a2c74fcd5a15292f2ad8be314e69be9e9a
CRs-Fixed: 2306751
Signed-off-by: DennySPB <dennyspb@gmail.com>
1 file changed