API: libcrmcommon: drop was_processing_error global
Replace it with a new scheduler flag internally.
This breaks API backward compatibility.