Fix bug in unitOfWorkMiddleware example

In the case where `req.tx` is committed and succeeds, `res.writeHead`
was called with the arguments to the commit callback function. It should
be called with the arguments that were passed to our version of
`writeHead`.