smbd: Make find_share_mode_entry() static to locking.c