fix(response): Solve deadlock

Commit #91b392c introduced a deadlock in the response.render() function that made pages load forever. The problem was that we tried to get the writers lock while we held he readers lock already.

This makes the code a bit uglier but at least it works.
Could do an early return here and a `{}` fallthrough  for the `None` case?