Croatia is freely entering into this and is free to leave in the future as well, the same as the UK chose. This is a sovereign treaty like any other. They are not signing away their ability to change their mind in the future. So there is utterly no change in "sovereignty".