Allow recursive static init (ROOT-5856).

First remove the global init holder (such that subsequent initializers are
added to their own array), then iterate through the init functions.
This fixes initializations that in turn trigger initializations.