Boston outscored Golden State 40-16 in the fourth quarter with Al Horford leading the way