Proper lifecycle of dummy index extension

DummyIndexKernelExtensionFactory pretended to be many things at once, an
extension factory, and extension and an index implementation. It only
implemented one init() method, which registered the index provider, but it
got called three times, once for each "role" it had.