XNIO-208 Add writeFinal method to channels

This allows for optimisation of protocols that require writing
termination data, such as HTTP chunking.