It mutates a clone of `p`. Join clones `p`, pushes `path` into it and returns the new instance.