drivers: base: component: fix memory leak with using debugfs_lookup()