Merge "ndk: Add way to manage ownership of linkToDeath cookie" am: f76f98d794

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1810663

Change-Id: Ieae1c42e0cbe2256861503f3a36d3923b0f52c87