s3:lib: add utility function sid_check_is_for_passdb()