insert middleware on top of stack

Inserting before ActionDispatch::Static assumes serving static assets is enabled and will fail if it's not, since that middleware won't exist. The other common trick of inserting after Rack::Lock isn't available if running in threadsafe mode.

Errors will be similar to:

```
RuntimeError: No such middleware to insert before: "ActionDispatch::Static"
```