A symmetry-protected topological optical lattice clock