Correctly handle internalNioBuffer for derived buffers