Turkey’s Recep Tayyip Erdogan said Saturday that his country’s borders with Europe were open, as thousands of refugees gathered at the frontier with Greece.