The Consistency of Common Neighbors for Link Prediction in Stochastic Blockmodels