Don't block access to the map while refreshing.

From code review feedback we only block the map while building the list of keys to refresh. Once we start downloading the new entries the map is available again and then we only block when accessing the map with get()/put() calls.
Merge pull request #3 from ox-it/WL-2657

WL-2657 Don't block access to the map while refreshing.