I think.. as soon as your I140 got approved. The PD is yours to keep.
But, if you are changing a new company without able to invoke the AC21, you can have your new company to start the new PERM process for you and then you can port your original PD.
If your I140 approved and I485 filed over 180 days. It is your right to invoke AC21 as long as you have a same or similar job.