Lattice Boltzmann simulations of flapping wings: the flock effect and the lateral wind effect