Entanglement dynamics of two independent cavity-embedded quantum dots