Border security topped the agenda for Imran Khan's visit to Tehran as he met President Rouhani and the supreme leader.