I'd like to protect bridge(4) data structures with a mutex. Using a
mutex is necessary because bridge_output() is called from interrupt
handlers in wireless drivers. This forces us to decouple data gathering
from copying to userland when executing some ioctl(2)s. Diff below does
that by moving the copyout(9)s outside of the loops.