Bugfix#57548 - runkit_class_adopt fails on method names with capitals

Also plug a leak in the class adoption inheritance failure path.