Modifies a pointer to point to a new mini-object.
The modification is done atomically. This version is similar to
replace except that it does not increase the refcount of
newdata and thus takes ownership of
newdata and the value pointed to by
olddata may be
pointer to a pointer to a mini-object to be replaced
pointer to new mini-object