Description
We don't have enough tests to test locking/deadlocks in GroupMetadataManager and TransactionManager. Since we have had a lot of deadlocks (KAFKA-5970, KAFKA-6042 etc.) which were not detected during testing, we should add more mock tests with concurrency to verify the locking.