ISTANBUL/ANKARA — Thousands of anti-government protesters gathered in Istanbul and Ankara on Friday awaiting the return of Prime Minister Tayyip Erdogan from a North African tour, an arrival that could appease or aggravate a week of violent unrest.