Update MergeRequestDiffCommit creation to set project_id column
What does this MR do and why?
Ensure that the project_id column is properly set when creating MergeRequestDiffCommit records, both in bulk creation and individual record creation during imports.
This change is necessary preparation for the upcoming new merge_request_diff_commits table, which will be partitioned by project_id and thus requires this column to be populated (see https://gitlab.com/gitlab-org/architecture/merge-request-diff-commits-deduplication/-/blob/main/README.md#create-new-partitioned-merge_request_diff_commits-table for more details).
This change is introduced behind the feature flag merge_request_diff_commits_partition (rollout issue: https://gitlab.com/gitlab-org/gitlab/-/issues/528421).
References
Related to #553318
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.