Make version of opaque closure constructor in world (#56823)
Successor to https://github.com/JuliaLang/julia/pull/56808 which enables
an opaque closure to be constructed with a specified world age (if, for
example, the current world age isn't valid due to being in a generated
function). Required for https://github.com/EnzymeAD/Reactant.jl/pull/365
(cherry picked from commit e46cc1ac7db4cdf5c7eb0cd98be1e4732137ddda)