ostruct: backport #modifiable protected method