Bugfix#58521 runkit_class_adopt doesn't work as expected

Forgot to actually link the class to its new parent.