Expose smbd_check_access_rights() to other modules.