avutil/buffer: separate public and internal flags inside AVBuffers