Better thread safety in pjax_block.

Previously, pjax_block would capture the target block's output by monkey-patching its nodelist's render method to call a callback. With this commit, we store the captured output in the render context instead, which should help thread safety and compatibility with the cached template loader.