Revert "ion: remove ion_validate_buffer_flag"

This reverts commit 330c9e1210a33ea58fc627d4bb4eb4d8f9dad90f.