The approach to solving it is to get promoted a lot. All of the directors and many of the staff+ engineers at my company are 40+. They are highly respected, receive eye-watering compensation, and if they move more slowly and cautiously than young folks it's chalked up to experience rather than senility.