[PATCH v2] ftrace: clean up hash direct_functions on register failures