Add a method to installd to delete a reference profile.

The current use case of this method is cleaning up a temp reference
profile that PackageDexOptimizer creates.

Bug: 226318301
Test: atest CtsCompilationTestCases:AdbRootDependentCompilationTest#testCompile_usedByOtherApps
Ignore-AOSP-First: Merge conflicts.
Change-Id: I07bae8736455e169cbb09b01e3540f09fe4105bc
3 files changed