Changed ByteBuf interface to support reference counting instead of Closeable.

  JAVA-1451