Merge "Add synchronization to UiAutomationManager."