a wrapper to assert that a pkg_ref has been permitted to do an additional mutation, used to handle recursive initialization of cached fields
allow_mutation(x, expr, envir = parent.frame())the result of expr
a pkg_ref object
an expression to evaluate, and possible do a mutation within
an environment in which the expression is to be evaluated