Fix Flaky tests
After the MR acknowledge transactions after committed to WAL got merged, we are observing some flaky tests.
Failed tests:
- https://gitlab.com/gitlab-org/gitaly/-/jobs/8672768407#L327
- https://gitlab.com/gitlab-org/gitaly/-/jobs/8674064810#L328
Flaky tests related to transaction-manager
Edited by Divya Rani