zero_to_err_ptr: fix some false positives with ERR_CAST()