De Finetti theorems and entanglement in large-N theories and gravity