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

fixes #1574
That branch won't be reached because `rstream == NULL`.