gh-93910: [Enum] restore member.member restriction while keeping performance boost (GH-94913)

(cherry picked from commit c20186c3972ff38577c4c5e32ca86748210983d2)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2 files changed