Adaptive Coded Federated Learning: Privacy Preservation and Straggler Mitigation