AMC Entertainment said it would buy London-based Odeon & UCI Cinemas from private-equity firm Terra Firma in a deal valued at about $1.21 billion.