fix DTLS mutex creation

Closed johan requested to merge fix/g722_plc into master

and C++ refactor

Merge request reports