pub async fn acquire_lock( tr: &mut Transaction<'_, Postgres>, key: i64, ) -> Result<(), Error>
Acquires a lock on the database to prevent concurrent migrations.