The Study of Tripartite Entanglement in Chiral and Bidirectional Waveguide Quantum Electrodynamics Using Fock-State Master Equations