Fix bug #8175 - smbd deadlock.