Add proper locks in the AppBatteryTracker

Bug: 200326767
Bug: 203105544
Test: atest FrameworksMockingServicesTests:BackgroundRestrictionTest
Change-Id: I189982111b2cfec7c12fee45b136e5a54360233a
1 file changed