kernel: Add linker_file_foreach() (taken from FreeBSD).