ServiceSingleton: Do not permit onServiceDied before onNewService

Remove race with binder death notification.
Fix deallocation race in NDK singleton implementation.

Flag: EXEMPT bugfix
Test: atest service_singleton_tests
Test: for run in {1..100}; do (sleep 8; echo $run; adb shell pkill audioserver); done
Bug: 379427790
Change-Id: I9dadb512dce8140a31e79acd6dfdff9946d1f8bc
3 files changed