pjnath/turn_sock: Fix destruction of TURN sockets

When destroying a TURN socket on failure -- e.g. failed allocation of
socket -- the underlying session does not change its last status.

Change this by passing a `pj_status_t' value to `pj_turn_sock_shutdown2'
and calling `pj_turn_session_shutdown2' instead of
`pj_turn_session_shutdown'.

The old `pj_turn_sock_shutdown' remains for ABI compatibility and call
the new version `pj_turn_sock_shutdown2' with status `PJ_SUCCESS'.

https://git.jami.net/savoirfairelinux/jami-daemon/-/issues/682
Upstream ticket: https://github.com/pjsip/pjproject/issues/3154

Change-Id: I7f902b0a5bb44fd403bd147676d655dc775f2156
4 files changed