SGTools: Use external locking in DataStore::clearStore.
Use external locking on the temporary map in DataStore::clearStore to avoid the overhead of locking for each iteration of the loop.
Use external locking on the temporary map in DataStore::clearStore to avoid the overhead of locking for each iteration of the loop.