(TWILL-75) Fix race condition in the InMemoryDiscoveryService that would raise concurrent modification exception.

Signed-off-by: Terence Yim <terence@continuuity.com>