graid3: Fix teardown races
Port commit dc399583ba09 from g_mirror, which has an effectively
identical startup sequence.
This fixes a race that was occasionally causing panics during GEOM test
suite runs on riscv.
MFC after: 1 month
(cherry picked from commit 33cb9b3c3a2260cc273713b0adcd95016ff8b675)