[Feature] 7198 Intermittent database deadlock in Work package Capybara spec

This branch shall help to reduce/prevent flickering tests in [``spec/features/accessibility``](https://github.com/opf/openproject/tree/feature/update_capybara_to_2-2-1/spec/features/accessibility)

[``* `#7198`Intermittent database deadlock in Work package Capybara spec``](https://www.openproject.org/work_packages/7198)