Lipkin-Meshkov-Glick model in a quantum Otto cycle