class Rack::Lock

Rack::Lock locks every request inside a mutex, so that every request will effectively be executed synchronously.