Iraq says it might turn to the UN within 48 hours unless Turkey withdraws troops it sent to areas near the northern IS-held city of Mosul.