Biomineralization control related to population density under ocean acidification