Routes and campsites near Yosemite where a family and their dead dog were found have been closed due to “unknown dangers,” officials say.