s3:smbd: make smbd_check_open_rights() function non-static for use in SMB2