* Adding missing mutex locks for D and c++
* Changing assert(0) in an Exception that is been caught in main