pbx_dundi.c: Misc memory management fixes when destroying peers