Retry dataStoreFactory creation

This handles the case when multiple workers on one machine are all
trying to use the data store directory at once.