Add API for setting/getting object flags (element, bin, pipeline, pad, etc)
Setting the flags should be protected be the object lock.
This also needs to account for the "subtyping" that happens in C for the different flags types.
Setting the flags should be protected be the object lock.
This also needs to account for the "subtyping" that happens in C for the different flags types.