[S] Change in libosmocore[master]: sim/class_tables: Prevent out-of-bounds access