dtlssrtpenc: Protect critical region just like in dtlssrtpdec

Change-Id: I3f78e7111e9be19da54ef63ab2070034cffe81cc