BPFD_LOCKED
if (d->bd_flags & BPFD_LOCKED) {
d->bd_flags |= BPFD_LOCKED;
d->bd_locked = bd->bd_flags & BPFD_LOCKED ? 1 : 0;