Entanglement sudden death and sudden birth of an atom coupled to a bimodal lossy cavity