On the shelf
As meaning without prospects of marriage, usually applied to women, dates from the early 1800s.