Thousands of Syrian refugees have poured into the Kurdistan region of northern Iraq.