Fix gevent monkey patch is applied for non gevent servers.