The longer a regime’s power is aligned with the establishment, the less democratic it becomes. There’s no clear-cut distinction between democracy or not democracy.
However, if a leader remains in power for decades, it’s highly probable that the establishment has a firm grip on the reins and is unlikely to relinquish control.