[gdb/symtab] Fix data race on bfd::{cacheable,format}