Generate jid in _wait in state module if not specified (can happen when called in the mine with queue=True)
Merge pull request #8003 from cloudflare/fix-state-__pub_jid-keyerror

Generate jid in _wait in state module if not specified