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

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.

Originally done by Norman at https://github.com/hornetq/hornetq/pull/1629