Restorecon in two phases when creating files and dirs for artifacts.

Suggested by alanstokes@ in aosp/2388476. The reason for each phase is
stated in the comments.

Bug: 262230400
Test: -
  1. Remove the "oat" directory of an app.
  2. Dexopt the app using ART Service.
  3. See no SELinux denials.
Ignore-AOSP-First: ART Services.
Change-Id: Id2b894cecbbf4ad7658339387c6e067b20536eaa
1 file changed