Chances are you have a vacuum leak....somewhere....probably in the vacuum system for the locks. Here are a few articles to look over..
Mercedes Vacuum Troubleshooting
Video
Why Won't My Mercedes Benz Diesel Shut Off? by Kent Bergsma - YouTube
There are cheaper places to by parts...