Bitbucket Server importer: Eliminate most idle-in-transaction issues
Just like with the GitHub importer, the Bitbucket Server importer can hit PostgreSQL 60 s idle-in-transaction timeouts if it takes too long to create the merge request. We solve this by using the same approach as the GitHub importer:
- Bypass all validation and hooks in creating a merge request
- Insert the Git data in a separate transaction
Part of #50021 (moved)