Set thread limit to 1 for MySQL.