changing middleware to insert_before Rack::Runtime instead of Rack::Lock to allow for config.threadsafe!