[Concurrency] Clean up functions from TaskPrivate.h that should be in Task.cpp (#92365)
Moves the out-of-line task-status manipulation functions
(enqueue/dequeue bookkeeping, running/suspended flag transitions,
dependency status record handling, etc.) out of TaskPrivate.h and into
Task.cpp alongside the rest of the Task implementation, mirroring where
the analogous Actor logic already lives in Actor.cpp. TaskPrivate.h now
only declares these as members.
Resolves rdar://181852536
<!--
If this pull request is targeting a release branch, please fill out the
following form:
https://github.com/swiftlang/.github/blob/main/PULL_REQUEST_TEMPLATE/release.md?plain=1
Otherwise, replace this comment with a description of your changes and
rationale. Provide links to external references/discussions if
appropriate.
If this pull request resolves any GitHub issues, link them like so:
Resolves <link to issue>, resolves <link to another issue>.
For more information about linking a pull request to an issue, see:
https://docs.github.com/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue
-->
<!--
Before merging this pull request, you must run the Swift continuous
integration tests.
For information about triggering CI builds via @swift-ci, see:
https://github.com/apple/swift/blob/main/docs/ContinuousIntegration.md#swift-ci
Thank you for your contribution to Swift!
-->