Masonite's sales up 4.7% with net income loss in Q2