When an transporter emergency turns the command crew into holosuite characters, Bashir’s James Bond fantasy takes on a deadly reality.