Restoration Hardware swings to profit in Q3