fix DTLS mutex creation

Merged johan requested to merge fix/dtls-srtp-mutex into release/5.4

and C++ refactor

Merge request reports