patch 8.2.4038: various code not used when features are disabled

Problem:    Various code not used when features are disabled.
Solution:   Add #ifdefs. (Dominique Pellé, closes #9491)
diff --git a/src/userfunc.c b/src/userfunc.c
index 6821569..3617e7b 100644
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -39,6 +39,7 @@
     hash_init(&func_hashtab);
 }
 
+#if defined(FEAT_PROFILE) || defined(PROTO)
 /*
  * Return the function hash table
  */
@@ -47,6 +48,7 @@
 {
     return &func_hashtab;
 }
+#endif
 
 /*
  * Get one function argument.