[RFC 11/15] job-qmp: job_query_single_locked: add assertion on job ret