udp-turn: Create locked version of realm&nonce cache function

To be able to call it from a context that is already locked.
1 job for 55-deadlock-in-udp-turn in 51 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Build
passed #45512
build-and-test

00:00:51