Uncertainty-Based Extensible Codebook for Discrete Federated Learning in Heterogeneous Data Silos