[docs] [issue20224] C API docs need a clear "defining custom extension types" section