Since we are talking about a core Islamic country, I would be far more worried about islamists eventually disposing of democracy than the military. Unlike the military, the fundamentalists actually have a way of keeping what they gained for an eternity. It's the very thing the Turkish military always feared and thus toppled governments occasionally, ironically enough gaining disapproval from the old democracies, who apparently would have been happier with another giant theocratic country if it was born democratically - no matter if it's upheld tyrannically like they always are.

Democracy has the great weakness of only continuing as long as everybody (significant) inside it wants it to continue.