Fix race condition in BgpPeer close procedure.

Change-Id: I283d78aab77a8ee32652d19d05ca68395a89262f