Fix race condition in BgpPeer close procedure.

Change-Id: I205c1c1a91dfbe5dc61574dd92f2ab2156ede255