Fix race condition in BgpPeer close procedure.

Change-Id: I58300e36d048902709343860066eb2ffdc4dca73