Democracy in Pakistan
This is where I want to offer an alternate explanation, and that is, Pakistan is an impossible country. It is a British Geo-political creation, like many others in the Middle East, which were viable only in the context of imperial designs for the region, but not by its own internal logic. A kinder version of this theory is that Pakistan is 'work in progress' (as are many other ex-colonial nations) and though Pakistan is very much a reality, Pakistanis are yet to be made. More practically, the geopolitical realities of the country, which, rather precariously, include a complete dependence on India for water, keeps it tied to the Anglo-American interests in Central Asia, and as that interest webs and flows, so does Pakistani democracy.
So, there is no point pretending that Pakistan is a normal country which, in course of time, will become democratic. As long as it remains too closely linked to global power-plays, it may never be. Ethnically diverse, and a late national creation, which is yet to move beyond its history of separation from India, Pakistan would forever be a state where Military plays an out-sized role, as the state itself exists for military reasons.
This doesn't mean there will be no change in Pakistani politics. The politics of the region Pakistan is much attached to, Central Asia, is rapidly changing, and becoming a sphere of geopolitical power-plays after a relative lull of 25 years: Pakistan's internal politics would reflect this change. The assertive military may now be less beholden to its American masters, as the Americans disengage and the Chinese engage deeply in the region. And, from that perspective, flexing a few muscles and taking over the civilian government by proxy may indeed be completely in order.
One final point: Where does that leave India? India can't really escape its hyphenated, joined in the hip relationship with Pakistan: They were twins, and India's politics closely reflects the ups and downs in Pakistan. However, escaping that cycle remains India's great strategic role, and an important factor in sustainability of Indian democracy. No democracies, regardless of militarist rhetoric, can sustain militarism and war for too long, as the costs of such adventures are disproportionately borne by poorer people. So a belligerent Pakistan would necessarily change India over the years, introducing, as it has done now, a more muscular politics in India in turn.