U.S. equities closed out 2021 on the downside, but all three major indexes registered solid gains on a yearly basis for the third-straight year, with the S&P 500 notching record highs 70 times along the way.