This is a new ploy by Mercedes to sell more cars/vans/suv's etc.
You can only open the hood so many times and then it locks shut..
Sorry...looks like you will be needing a new car soon...btw, I have a nice 1983 300d for sale without this feature !
And welcome aboard, to the quiticential knowledge base of German engineering science.....................
.