ovsdb-idl: Add "safe" iterator macro to generated code.