We could just appoint them until a given age, let's say 70 for example, and then guarantee lifetime benefits after that but they no longer serve.
It has all the same benefits of a lifetime tenure, they don't need to worry about retaliation, they wouldn't be _more_ likely to accept bribes since they will still have income and benefits for their retirement, etc.