Amid CEO transition, Masco posts sales gains