Allow @synchronized to contextually convert a C++ object to an ObjC object pointer.

Patch by Grant Paul!