Add permission check QUERY_ALL_PACKAGES in API
getDeviceOwnerComponent.
Bug: 185896465
Test: atest DevicePolicyManagerTest#testDeviceOwnerMigration
atest DevicePolicyManagerTest#testGetDeviceOwnerAdminLocked
Change-Id: Ibd611bfe2b96227a09df81a60c6e2109851c1938