Fixed issues with reporting sync state events from different threads