Fix stack use after scope.

Change-Id: I8646d0ef5eed557eca2c963cdf87c56d4b689d88
Fixes: 117185619
Test: boot
diff --git a/transport/ServiceManagement.cpp b/transport/ServiceManagement.cpp
index 57434d7..f9db823 100644
--- a/transport/ServiceManagement.cpp
+++ b/transport/ServiceManagement.cpp
@@ -632,7 +632,7 @@
    private:
     const std::string mInterfaceName;
     const std::string mInstanceName;
-    const sp<IServiceManager1_1>& mSm;
+    sp<IServiceManager1_1> mSm;
     std::mutex mMutex;
     std::condition_variable mCondition;
     bool mRegistered = false;