Make RTP and Codec actions thread-safe

This is probably what caused crashes in utox.