Guarded by scarlet leather-bound doors and bordered inside with gilt-lettered books and marble busts, the Boston Athenaeum for decades was the province of the city’s elite families. The Cabots and the Adamses and the Coolidges all claimed membership in the private library on Beacon Hill, handing down their membership “shares’’ through the generations.