Wraps FPDFAnnot_SetFlags. Accepts either an integer bitmask or
a named logical vector matching the names that
pdf_annot_flags_decoded() returns (is_invisible,
is_hidden, is_print, is_no_view, is_read_only,
is_locked, ...). When a named logical is passed, any TRUE
position sets the corresponding bit; FALSE clears it.