Add unit test for BackgroundDexOptService

- cleaned up DexOptHeler inside service to allow easier testing

Bug: 156537504
Test: run the added test
      atest com.android.server.pm.BackgroundDexOptServiceUnitTest
Change-Id: Ie44d79498e71d429f927a5f8301aa38894ab33bf
3 files changed