Fix a few more coverity issues.
TRQ-2688. Fix a double free around submitting satisfied job dependencies.

If a dependency is submitted but already satisfied, it could get freed during the registration
process and cause a corrupt memory access. Resolved.