[RFC] job: Add optional {flags} parameter.

fixes #1574
Good question, even the original PR https://github.com/neovim/neovim/pull/1316/files#diff-deb695d507653839019814f54242d47bR19527 does not seem to require it being a macro, maybe it was overlooked during a refactoring. ping @tarruda