Quantum master equations for the superconductor–quantum dot entangler