Remove deletion of the list of functions from ResetCaches

This cause the massive problems with commit 9707206210
(see ROOT-5661) as it increase (intentionally) the number
of classes and namespace that are affected.