ISPN-4626 Race condition in the LocalEntryRetriever between iterator() a...

...nd hasNext()

https://issues.jboss.org/browse/ISPN-4626