Optimize SnappyFramedOutputStream for NIO.

https://github.com/xerial/snappy-java/issues/49