https://docs.unrealengine.com/latest/INT/Programming/UnrealArchitecture/SmartPointerLibrary/
What you want is MakeShareable() function.
Class field (so it does not garbage-collected)
TSharedPtr<FRunnableContainer, ESPMode::ThreadSafe> ContainerPtr;
Where you create your Container:
ContainerPtr = MakeShareable(NearCont);