Refactor listNetworks logic to use new IAM model.
avoid mysql lock-promotion situation.
Let VMSync be aware of HA take-over on VM state management.
Fix style-check issue after cherry-picks