Fix leak in KNN::store_model_features, duplicate increases ref count