Do not use lock to get the shared_ptr as it doesn't throw an exception when the std::weak_ptr argument is empty
liblinphone!3066 (merged) bctoolbox!295 (merged)
https://linphone.atlassian.net/browse/SDK-175