Localizing softness and stress along loops in 3D topological metamaterials