Make bgp_xmpp_wready_test more robust.

Change-Id: I9ebf6d76d03c19d01da921cfd4d209d372c789af