Implementing rib_schema_destroy(). Refactoring rib_schema internals