Fix race condition in BgpPeer close procedure.

Change-Id: I9bd45b0bafd0b0b63de84bb95311072c4ea8e368