Merge "pbx_dundi.c: Handle thread shutdown better."