Fix race condition in BgpPeer close procedure.

Change-Id: Ieab499503159e7d809d115686a9dd98ceb613033