gpart: Avoid geom_gettree() call in "bootcode -b".
geom_gettree() may be pretty expensive on large systems, and it is
not needed if only -b flag specified, that is processed by kernel.
MFC after: 1 month
(cherry picked from commit 5c20bfc78706d2fe6e262ddb55af0a8b928d3835)