keystore: Fix double ownership of ConfirmationListener

Using std::make_shared with ndk::SharedRefBase objects causes memory
errors.

Ignore-AOSP-First: Waiting for security team feedback first.
Bug: 226234140, 226379467
Test: TH
Change-Id: I3fa639e92024ec418c69b4e355ac425884c22026
diff --git a/keystore/keystore_cli_v2.cpp b/keystore/keystore_cli_v2.cpp
index 1e9126d..d01c67d 100644
--- a/keystore/keystore_cli_v2.cpp
+++ b/keystore/keystore_cli_v2.cpp
@@ -1025,7 +1025,7 @@
         return 1;
     }
 
-    auto listener = std::make_shared<ConfirmationListener>();
+    auto listener = ndk::SharedRefBase::make<ConfirmationListener>();
 
     auto future = listener->get_future();
     auto rc = apcService->presentPrompt(listener, promptText, extraData, locale, uiOptionsAsFlags);