No need to do a memory copy when using netty >= 4.0.17.

Just slice out the frame and call retain() on it, this will eliminate the need of memory copy for each frame and so improve the overall performance.