fix shared cache manager race