Set a global query timeout.