build: Update string-cache to fix a nasty race

r? @kmcallister