Add clean_module_functions() to clean functions which are registered by zend_register_functions(). The general logic of clean_module_functions() is consistent with clean_module_classes().
Fixes GH-8185