KAFKA-20756: Parameterize for transactional state stores (#22726)