Not freeing PTCacheEdit and tagging batch cache dirty on undo will have
a couple of consequences. This patch fixes:
- crash deleting a particle, then undo
- basically any edit (combing, ...), then undo will leave child hairs untouched
- adding hairs (through mirror, add tool, ...), then undo will leave 'orphaned' child hairs
See also D5755 for a related discussion
Fixes the crasher mentioned in T69000