Remove non thread-safe usages of ActiveRecord::Base.logger.quietly.