libctf: Use const ctf_file_t references in string lookup routines
MFC after: 1 week Sponsored by: The FreeBSD Foundation