IMPALA-626: Allow dropping functions while it is running.

Change-Id: Ia9d6fa1daadddbd05961696d13b9ff43fef2da61
Reviewed-on: http://gerrit.ent.cloudera.com:8080/1562
Reviewed-by: Nong Li <nong@cloudera.com>
Tested-by: jenkins