bsdconfig: Resolve GEOM ids and names without scanning
f_device_get_all probes every DEV geom. Each probe calls
f_geom_find_by to turn a provider ref into a struct, and
f_geom_find for the gpt, geli, and nop parent names. Those walks
cover every class and geom, so a machine with a large disk set
spends its time in sh at "Probing devices".
Record each struct by id, and each geom by name, while
f_geom_get_all parses kern.geom.confxml. f_geom_find_by resolves
property id from the id map. f_geom_find resolves a non-empty name
from the name map. The same name can appear in more than one class,
so the name map stores a list of structs. A name that is still not
a shell identifier after rewriting is left for the linear scan.
f_geom_reset drops both maps.
Add an ATF test that times id and name lookups at 100 and 200
disks, and checks names that are not shell identifiers.
PR: 269150