bucket_unpacking_with_sort_extended_range.js is currently using the default database name "test" to run the validations.
Since this test is run in a passthrough suite, other tests may have introduced data or already created the database with unexpected metadata. Because of that and to ensure a clean setup, the test drops the database at the startup.
In slower variants, dropping the "test" database may take longer than 5 minutes. If the CheckMetadataConsistency hook is executed at the beginning of the test, it may timeout because it will not acquire the DDL lock within 5 minutes due to the ongoing dropDatabase operation.
I suggest using a new database with the name of the test instead of reusing the "test" database from the passthrough.