Refactor new function out of _user_read_kernel_image_symbols(). Can be used to get a kernel image's symbols from within the kernel as well.