Semisimplicity in operator algebras and subspace lattices