Effects of dissipation on the time evolution of coherence and entanglement of a two‐quantum dot system in a microcavity