Fix bug 8305 - nmbd segfaults - when using "smbtree ..." (cherry picked from commit...