Quantum Critical Behavior of Entanglement in Lattice Bosons with Cavity-Mediated Long-Range Interactions.