Fix concurrency issue in BGP state machine test

Change-Id: Ic7ada88cfb2f72315ad94e769923c054a9598af1