Implement linkToDeath for binder objects and stop profiling

Add linkToDeath to each binder object and attempt to stop any active profiling when it dies.

b/345847850 for adding automated tests for this

Bug: 345814500
Test: start a trace, kill the starting process, confirm stopprofiling is executed
Flag: EXEMPT - bugfix
Change-Id: Iebf022780a5ebcdf65db71ced0286f2fc476e16a
1 file changed