Avoid alarm lock when calling outside

Specifically need to avoid creating a cyclical locking pattern with
device idle controller.

Test: builds, boots, existing tests pass.
m RUN_ERROR_PRONE=true services
atest FrameworksMockingServicesTests:com.android.server.alarm

Bug: 228971904
Change-Id: I93109f820690baa1e51f47fc3eec0e39a71ef08e
2 files changed