Fix a few nits relative to the previous changes:
- Don't leak the config lock if detach() fails due to the controller char dev being open.
- Close a race between detach() and a process opening the controller char dev.
MFC after: 1 week
Approved by: re (bmah)