Emergent crystallinity and frustration with Bose–Einstein condensates in multimode cavities