Fixed a race when the first agent retries to register.
Fixed a race when the first agent retries to register.

The first agent can retry registration, which can erroneously satisfy
the `SlaveRegisteredMessage` expectation for the second agent.

Review: https://reviews.apache.org/r/63011

asamerh4/mesos,andschwa/mesos,dforsyth/mesos,reneploetz/mesos,asamerh4/mesos,chhsia0/mesos,Gilbert88/mesos,Gilbert88/mesos,zmalik/mesos,andschwa/mesos,reneploetz/mesos,asamerh4/mesos,chhsia0/mesos,jpeach/mesos,andschwa/mesos,gsantovena/mesos,jpeach/mesos,abudnik/mesos,jpeach/mesos,asamerh4/mesos,Gilbert88/mesos,chhsia0/mesos,andschwa/mesos,zmalik/mesos,kaysoky/mesos,zmalik/mesos,abudnik/mesos,andschwa/mesos,andschwa/mesos,kaysoky/mesos,Gilbert88/mesos,jpeach/mesos,gsantovena/mesos,abudnik/mesos,dforsyth/mesos,jpeach/mesos,reneploetz/mesos,gsantovena/mesos,reneploetz/mesos,chhsia0/mesos,dforsyth/mesos,zmalik/mesos,kaysoky/mesos,reneploetz/mesos,zmalik/mesos,dforsyth/mesos,kaysoky/mesos,jpeach/mesos,Gilbert88/mesos,kaysoky/mesos,Gilbert88/mesos,reneploetz/mesos,dforsyth/mesos,asamerh4/mesos,asamerh4/mesos,abudnik/mesos,andschwa/mesos,abudnik/mesos,gsantovena/mesos,chhsia0/mesos,dforsyth/mesos,gsantovena/mesos,reneploetz/mesos,chhsia0/mesos,zmalik/mesos,kaysoky/mesos,abudnik/mesos,kaysoky/mesos,zmalik/mesos,gsantovena/mesos,jpeach/mesos,gsantovena/mesos,Gilbert88/mesos,chhsia0/mesos,dforsyth/mesos,asamerh4/mesos,abudnik/mesos