smbd: fix sharing access check for directories

This was missing from !3827 (closed). Found by one of my Directory Leases tests.

Merge request reports

Loading