The ongoing peace talks in Qatar and Islamabad’s engagement with Kabul offer a prospect of gains for all stakeholders