fix synchronization in PM and PowerHal

- PM: in mocked test, release can be called while
  init is still going on. Wait for init to be done
  in release.
- ignore IllegalArgumentException for sensor
  subscription during init: mocking can bring this.
- PowerHal: add missing synchronizarion

bug: 32074752
Change-Id: I746fcfff3848d3e5aa29b5a28d7dafb6b38057c5
2 files changed