shrpx: Fix bug: end marker of chunked encoding is written twice