s4:dsdb - introduce a only constant-time "get_last_structural_class()" call