Avoid the race condition between 3 party conference creation and hangup by the lock
While moving call into the conference, the call is moved to the first bridge and other channel is kicked out of call.A hangup is generated because of this.There was a race between hangup and ast_bridge_merge, which was causing sometime the cleanup happening before bridge were merged.
Edited by Yalu Zhang