An Extinction Threshold for Protostellar Cores in Ophiuchus