[Git][ghc/ghc][wip/fendor/no-code-output-constr] 13 commits: Adjust releaseCapability_ precondition to allow cap->running_task == NULL