Code cleanup, change EngineController.HasPendingGraphSyncData to property
fix for InIdleThread flag
Merge pull request #1241 from ke-yu/fix_magn1426

Code cleanup, change EngineController.HasPendingGraphSyncData to property