[Git][ghc/ghc][wip/T27466] 16 commits: Adjust releaseCapability_ precondition to allow cap->running_task == NULL