job pool: fix race condition with a job sequence counter