The law is structured in such a way that the judges and courts have a great deal of freedom and discretion about which laws to enforce when, and can decide not to enforce laws at specific times. This is seen as a strength of the system, in that it prevents a lot of obtuse bickering over minor details of legal interpretation. The judge can do maneuvers like saying "The spirit and intent of the law was this, doesn't matter what it actually says" and this is legal. So yes the Chinese state probably does have protections for this sort of thing, but they probably never enforce any of them because of rampant abuse.