What I envision is a time when the EU will not want a state to leave the union...
And where will it suddenly get that power from, because it certainly doesn't have it now. There's no way such authoritarian powers would pass a vote - no country would want to give up sovereignty to that extent.
Think of it like this. In the UK, when drawing up acts of parliament, there is a proviso that any draft act should not limit the powers of future governments to rescind that act. They have the same set-up in the EU.