Keystore 2.0: km_compat: Fix ref counting in software keymint device.

CreateKeyMintDevice now creates a shared_ptr with correct ref counts.

Bug: 219791936
Test: atest keystore2_km_compat_test_cpp does not crash any more.
Change-Id: I3b304c0a4d55883b8f917ce0ef4c70d4bd0e9e9b
1 file changed