PR libstdc++/80229 restore support for shared_ptr<function type>