Add write lock around cache resolver .store method